commit | 6312a43544e64cbf5b2487157c9370f6b0a6d63c | [log] [tgz] |
---|---|---|
author | mgorning <mgorning> | Thu Mar 03 09:46:10 2011 +0000 |
committer | mgorning <mgorning> | Thu Mar 03 09:46:10 2011 +0000 |
tree | 3c57340d72cca74e56ca4fee60c7b7cdeb1744d5 | |
parent | ef130c70ddeb724daeecd1de261dd1bd12490fbe [diff] |
set the location for the create connection command as early as possible
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/policy/GFNodeEditPolicy.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/policy/GFNodeEditPolicy.java index 8f80c8e..1d207db 100644 --- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/policy/GFNodeEditPolicy.java +++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/policy/GFNodeEditPolicy.java
@@ -134,10 +134,10 @@ CreateConnectionCommand cmd = new CreateConnectionCommand(configurationProvider, (PictogramElement) getHost().getModel(), features); + cmd.setLocation(request.getLocation()); if (!cmd.canStartConnection()) { return null; } - cmd.setLocation(request.getLocation()); request.setStartCommand(cmd); return cmd;