|
@@ -521,6 +521,8 @@ public class MyCanvas extends AbstractCanvas implements MouseListener,
|
|
|
}
|
|
|
triggerUpdateController();
|
|
|
}
|
|
|
+
|
|
|
+ stopEditing();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -548,11 +550,15 @@ public class MyCanvas extends AbstractCanvas implements MouseListener,
|
|
|
setConsoleTextAfterSelect(cps);
|
|
|
|
|
|
dragging = true;
|
|
|
+
|
|
|
if (e.isControlDown() && tempCps != null) {
|
|
|
if (model.getSelectedCpsObjects().contains(tempCps)) {
|
|
|
controller.deleteSelectedObject(tempCps);
|
|
|
+ //TODO: RemoveDepth
|
|
|
} else {
|
|
|
controller.addSelectedObject(tempCps);
|
|
|
+ if(tempCps instanceof CpsUpperNode)
|
|
|
+ controller.getObjectsInDepth();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -629,6 +635,9 @@ public class MyCanvas extends AbstractCanvas implements MouseListener,
|
|
|
&& MouseEvent.BUTTON3 != e.getButton()) {
|
|
|
model.getSelectedCpsObjects().clear();
|
|
|
controller.addSelectedObject(tempCps);
|
|
|
+ model.setSelectedCpsObject(tempCps);
|
|
|
+ if(tempCps instanceof CpsUpperNode)
|
|
|
+ controller.getObjectsInDepth();
|
|
|
}
|
|
|
|
|
|
dragged = false;
|