Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-02-15 09:44:26 -0500
committeratikhomirov2006-02-15 09:44:26 -0500
commited546bf950368f714ec119305262c3fe2bf6eae1 (patch)
tree28ed04de293110e5f221ff35895a8abe2b607b8a /plugins/org.eclipse.gmf.graphdef.codegen/templates/top
parentbcde3e55601c71bba82a19b2f2cdc83a8c8566f3 (diff)
downloadorg.eclipse.gmf-tooling-ed546bf950368f714ec119305262c3fe2bf6eae1.tar.gz
org.eclipse.gmf-tooling-ed546bf950368f714ec119305262c3fe2bf6eae1.tar.xz
org.eclipse.gmf-tooling-ed546bf950368f714ec119305262c3fe2bf6eae1.zip
[mgolubev] #127252 layout support
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/top')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet4
1 files changed, 2 insertions, 2 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 c5854561c..4b37a73e5 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Shape.javajet
@@ -19,7 +19,7 @@ public class <%=figure.getName()%> extends <%=importManager.getImportedName((Str
*/
public <%=figure.getName()%>() {
<%
-GraphDefDispatcher.LayoutArgs dispatcherArgs = dispatcher.createLayoutArgs(figure, "this", "myGenLayoutManager");
+GraphDefDispatcher.LayoutArgs dispatcherArgs = dispatcher.createLayoutArgs(figure, "this", "myGenLayoutManager", null);
%>
<%=dispatcher.dispatch("createLayout", dispatcherArgs)%>
<%=dispatcher.dispatch(figure, dispatcherArgs)%>
@@ -31,7 +31,7 @@ for (Iterator it = figure.getResolvedChildren().iterator(); it.hasNext();) {
org.eclipse.draw2d.IFigure <%=childVarName%> = createFigure<%=next.getName()%>();
setFigure<%=next.getName()%>(<%=childVarName%>);
add(<%=childVarName%>);
- <%=dispatcher.dispatch("createLayoutData", dispatcher.createLayoutArgs(next, childVarName, "layout" + next.getName()))%>
+ <%=dispatcher.dispatch("createLayoutData", dispatcher.createLayoutArgs(next, childVarName, dispatcherArgs.getManagerVariableName(), "layoutData" + next.getName()))%>
<%}%>
}

Back to the top