Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-08-24 09:13:36 -0400
committeratikhomirov2006-08-24 09:13:36 -0400
commit602bd6b0125c6564436cf870100d413d0e0f6bd7 (patch)
tree42a39366e32d491ffc5bc0635acf7dd0f6d82983 /plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
parent4000ac816f4a9f03d43ad13ce3eacca4868565bc (diff)
downloadorg.eclipse.gmf-tooling-602bd6b0125c6564436cf870100d413d0e0f6bd7.tar.gz
org.eclipse.gmf-tooling-602bd6b0125c6564436cf870100d413d0e0f6bd7.tar.xz
org.eclipse.gmf-tooling-602bd6b0125c6564436cf870100d413d0e0f6bd7.zip
[154683] mgolubev - Handle custom borders.
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet8
1 files changed, 6 insertions, 2 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 aa4f4dba1..ffb3a645f 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/Figure.javajet
@@ -1,11 +1,13 @@
<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="TopFigureGenerator"
- imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.gmfgraph.util.* org.eclipse.gmf.common.codegen.* org.eclipse.gmf.graphdef.codegen.* java.util.Iterator;"%>
+ imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.gmfgraph.util.* org.eclipse.gmf.common.codegen.* org.eclipse.gmf.graphdef.codegen.* org.eclipse.emf.ecore.* java.util.Iterator org.eclipse.emf.ecore.util.EcoreUtil org.eclipse.emf.codegen.util.CodeGenUtil; "%>
<%
Object[] args = (Object[]) argument;
Figure figure = (Figure) args[0];
final ImportAssistant importManager = (ImportAssistant) args[1];
final FigureQualifiedNameSwitch fqnSwitch = (FigureQualifiedNameSwitch) args[2];
final GraphDefDispatcher dispatcher = (GraphDefDispatcher) args[3];
+
+//[MG] FIXME: Why we need this? Is it in use somewhere?
final boolean isInnerClass = ((Boolean) args[4]).booleanValue();
%>
<%importManager.emitPackageStatement(stringBuffer);%>
@@ -17,13 +19,15 @@ final boolean isInnerClass = ((Boolean) args[4]).booleanValue();
*/
public class <%=importManager.getCompilationUnitName()%> extends <%=fqnSwitch.get(figure, importManager)%> {
+<%@ include file="../customBorderFactoryMethods.jetinc"%>
+
/**
* @generated
*/
public <%=figure.getName()%>() {
<%
GraphDefDispatcher.LayoutArgs dispatcherArgs = dispatcher.createLayoutArgs(figure, "this", "myGenLayoutManager", null);
-%>
+%>
<%=dispatcher.dispatch("createLayout", dispatcherArgs)%>
<%=dispatcher.dispatch(figure, dispatcherArgs)%>
createContents();

Back to the top