*/
public void mouseReleased(EditorMouseEvent event) {
double mx = event.getX(), my = event.getY();
DiagramElement elem = editor.getDiagram().getChildAt(mx, my);
if (elem instanceof PackageElement && elem != source) {
CreateConnectionCommand command = new CreateConnectionCommand(
elementFactory, editor.getDiagram(), editor, (Node) source,
(Node) elem);
editor.execute(command);
}
isDragging = false;