Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-02-17 11:47:42 -0500
committeratikhomirov2009-02-17 11:47:42 -0500
commit5dcc6010608d45abf7c18f7c6710d3d1b3f3f3d0 (patch)
treec181083d20a9e39f502a3b00fb30362a0296262a
parentdc8326e8ff1b7249d93d389c874fdb9cdf34e2da (diff)
downloadorg.eclipse.gmf-tooling-5dcc6010608d45abf7c18f7c6710d3d1b3f3f3d0.tar.gz
org.eclipse.gmf-tooling-5dcc6010608d45abf7c18f7c6710d3d1b3f3f3d0.tar.xz
org.eclipse.gmf-tooling-5dcc6010608d45abf7c18f7c6710d3d1b3f3f3d0.zip
migrated templates are missing copyright and comments
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/editpolicies/Utils.qvto14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/editpolicies/Utils.qvto b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/editpolicies/Utils.qvto
index cdb4a132c..28e1f57ae 100644
--- a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/editpolicies/Utils.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/editpolicies/Utils.qvto
@@ -1,3 +1,15 @@
+/*
+ * Copyright (c) 2007, 2008 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alexander Shatalin (Borland) - initial API and implementation
+ * Michael Golubev (Borland) - [243151] explicit source/target for links
+ */
import xpt.diagram.editpolicies.LinkUtils;
import xpt.GenModelUtils;
@@ -29,6 +41,8 @@ helper getReroutableRefLinks(linkEnd : genModel::GenLinkEnd) : Sequence(genModel
return getAllRelatedReroutableLinks(linkEnd)->select(link | isRefLink(link))
}
+--XXX[MG]: again, it would be better to use linkEnd.incomingLinks.union(linkEnd.outgoingLinks).toList()
+--but it will change the ordering and produce meaningless diff in the generated code
helper getAllRelatedLinks(linkEnd : genModel::GenLinkEnd) : Sequence(genModel::GenLink) {
return linkEnd.getDiagram().links->select(link | canBeSource(link, linkEnd) or canBeTarget(link, linkEnd))->asSequence()
}

Back to the top