do not drag while creating new component

This commit is contained in:
bancika
2011-01-20 23:23:40 +00:00
parent dd53cfe569
commit be7e9a1d53
@@ -518,6 +518,10 @@ public class Presenter implements IPlugInPort {
@Override
public void dragStarted(Point point, boolean ctrlDown, boolean shiftDown, boolean altDown) {
LOG.debug(String.format("dragStarted(%s)", point));
if (instantiationManager.getComponentTypeSlot() != null) {
LOG.debug("Cannot start drag because a new component is being created.");
return;
}
dragInProgress = true;
preDragProject = cloner.deepClone(currentProject);
Point scaledPoint = scalePoint(point);