Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2013-03-17 16:27:47 -0400
committermgolubev2013-03-17 16:27:47 -0400
commit012e209e5898eb732f957901003ac2b9afb17bca (patch)
treee32a29f2e6c2be2bef6b95d72e0ac6c55c773961
parente633bb2912284f955fdc19f3ae7efa0af3b08d23 (diff)
downloadorg.eclipse.gmf-tooling-012e209e5898eb732f957901003ac2b9afb17bca.tar.gz
org.eclipse.gmf-tooling-012e209e5898eb732f957901003ac2b9afb17bca.tar.xz
org.eclipse.gmf-tooling-012e209e5898eb732f957901003ac2b9afb17bca.zip
[403579] - GraphicalNodeEditPolicy - ensure ordering to avoid generating
of useless diff
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/editpolicies/GraphicalNodeEditPolicy.xpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/editpolicies/GraphicalNodeEditPolicy.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/editpolicies/GraphicalNodeEditPolicy.xpt
index 8bfd88d26..275f64270 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/editpolicies/GraphicalNodeEditPolicy.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/diagram/editpolicies/GraphicalNodeEditPolicy.xpt
@@ -23,7 +23,7 @@ public class «graphicalNodeEditPolicyClassName» extends org.eclipse.gmf.runtim
protected org.eclipse.gef.commands.Command getConnectionCompleteCommand(
org.eclipse.gef.requests.CreateConnectionRequest request) {
org.eclipse.gmf.runtime.emf.type.core.IElementType elementType = getElementType(request);
- «FOREACH reorientedIncomingLinks->asSequence() AS link-»
+ «FOREACH reorientedIncomingLinks->sortedBy(l | l.visualID) AS link-»
if («EXPAND xpt::providers::ElementTypes::accessElementType FOR link» == elementType) {
«IF link.outgoingCreationAllowed-»
if (request.getSourceEditPart() != getHost()) {

Back to the top