Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-02-20 12:18:33 +0000
committerashatalin2006-02-20 12:18:33 +0000
commita24cc4c2d596ffa8e45f868b9eb487f550805a29 (patch)
treee1fed6b6f505de80f468b507849b6d565d9da7a0 /plugins/org.eclipse.gmf.graphdef.codegen/templates
parent0e73c7c39ec0dec9a81d3b9c9b4cefb5ed589e18 (diff)
downloadorg.eclipse.gmf-tooling-a24cc4c2d596ffa8e45f868b9eb487f550805a29.tar.gz
org.eclipse.gmf-tooling-a24cc4c2d596ffa8e45f868b9eb487f550805a29.tar.xz
org.eclipse.gmf-tooling-a24cc4c2d596ffa8e45f868b9eb487f550805a29.zip
[michael.golubev] #128620 Split org.eclipse.gmf.codegen.util.Generator
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet14
1 files changed, 9 insertions, 5 deletions
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 4b37a73e5..7e6da55f7 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
@@ -9,6 +9,10 @@ final GraphDefDispatcher dispatcher = (GraphDefDispatcher) args[3];
%>
<%importManager.markImportLocation(stringBuffer);%>
+<%
+importManager.addImport("org.eclipse.draw2d.IFigure");
+final String draw2d_IFigure = importManager.getImportedName("org.eclipse.draw2d.IFigure");
+%>
/**
* @generated
@@ -28,7 +32,7 @@ for (Iterator it = figure.getResolvedChildren().iterator(); it.hasNext();) {
Figure next = (Figure) it.next();
final String childVarName = "child" + next.getName();%>
- org.eclipse.draw2d.IFigure <%=childVarName%> = createFigure<%=next.getName()%>();
+ <%=draw2d_IFigure%> <%=childVarName%> = createFigure<%=next.getName()%>();
setFigure<%=next.getName()%>(<%=childVarName%>);
add(<%=childVarName%>);
<%=dispatcher.dispatch("createLayoutData", dispatcher.createLayoutArgs(next, childVarName, dispatcherArgs.getManagerVariableName(), "layoutData" + next.getName()))%>
@@ -40,26 +44,26 @@ int fc = 0;
for (Iterator it = figure.getResolvedChildren().iterator(); it.hasNext(); fc++) {
Figure next = (Figure) it.next();%>
- private IFigure f<%=next.getName()%>;
+ private <%=draw2d_IFigure%> f<%=next.getName()%>;
/**
* @generated
*/
- public IFigure getFigure<%=next.getName()%>() {
+ public <%=draw2d_IFigure%> getFigure<%=next.getName()%>() {
return f<%=next.getName()%>;
}
/**
* @generated
*/
- protected void setFigure<%=next.getName()%>(IFigure figure) {
+ protected void setFigure<%=next.getName()%>(<%=draw2d_IFigure%> figure) {
f<%=next.getName()%> = figure;
}
/**
* @generated
*/
- private IFigure createFigure<%=next.getName()%>() {
+ private <%=draw2d_IFigure%> createFigure<%=next.getName()%>() {
<%=dispatcher.dispatch("instantiate", dispatcher.create(next, "rv"))%>
<%=dispatcher.dispatch("Children", new Object[] {next.getChildren(), dispatcher, "rv"})%>
return rv;

Back to the top