Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-02-27 17:40:11 +0000
committerashatalin2006-02-27 17:40:11 +0000
commit2c486f2aa5dfaed9f625df5354da9eeaac4a6cba (patch)
tree3b292a277ba4f88dd7c9bdc62cdeea267145fa72 /plugins/org.eclipse.gmf.graphdef.codegen/templates
parenta1562bf3f0ba4f2181985aecad529d8b53c102ef (diff)
downloadorg.eclipse.gmf-tooling-2c486f2aa5dfaed9f625df5354da9eeaac4a6cba.tar.gz
org.eclipse.gmf-tooling-2c486f2aa5dfaed9f625df5354da9eeaac4a6cba.tar.xz
org.eclipse.gmf-tooling-2c486f2aa5dfaed9f625df5354da9eeaac4a6cba.zip
Adding "setUseLocalCoordinates" method.
Useful for inner shape-figures located outside of compartment.
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet21
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet19
2 files changed, 40 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
index 61246ba1f..eadb9d469 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
@@ -14,6 +14,12 @@ final GraphDefDispatcher dispatcher = (GraphDefDispatcher) args[3];
* @generated
*/
public class <%=figure.getName()%> extends <%=importManager.getImportedName((String) fqnSwitch.doSwitch(figure))%> {
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates;
+
/**
* @generated
*/
@@ -21,4 +27,19 @@ public class <%=figure.getName()%> extends <%=importManager.getImportedName((Str
<%=dispatcher.dispatch(figure, dispatcher.create(figure, "this"))%>
<%=dispatcher.dispatch("Children", new Object[] {figure.getChildren(), dispatcher, "this"})%>
}
+
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
+
}<%importManager.emitSortedImports();%>
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
index 7e6da55f7..2e571029c 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
@@ -18,6 +18,12 @@ final String draw2d_IFigure = importManager.getImportedName("org.eclipse.draw2d.
* @generated
*/
public class <%=figure.getName()%> extends <%=importManager.getImportedName((String) fqnSwitch.doSwitch(figure))%> {
+
+ /**
+ * @generated
+ */
+ private boolean myUseLocalCoordinates;
+
/**
* @generated
*/
@@ -70,4 +76,17 @@ for (Iterator it = figure.getResolvedChildren().iterator(); it.hasNext(); fc++)
}
<%}%>
+ /**
+ * @generated
+ */
+ protected boolean useLocalCoordinates() {
+ return myUseLocalCoordinates;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setUseLocalCoordinates(boolean useLocalCoordinates) {
+ myUseLocalCoordinates = useLocalCoordinates;
+ }
}<%importManager.emitSortedImports();%>

Back to the top