Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-03-13 12:53:14 -0500
committeratikhomirov2006-03-13 12:53:14 -0500
commit2817409de45f43ad87eb1c260fa5bcea0b8f8d17 (patch)
treef73d0a003639e3fbc5dd86f9920de2b5869dd48f /plugins/org.eclipse.gmf.graphdef.codegen/templates/new
parentcc7f4191120cb57f4565fb0eb94f9bfb68d1efbe (diff)
downloadorg.eclipse.gmf-tooling-2817409de45f43ad87eb1c260fa5bcea0b8f8d17.tar.gz
org.eclipse.gmf-tooling-2817409de45f43ad87eb1c260fa5bcea0b8f8d17.tar.xz
org.eclipse.gmf-tooling-2817409de45f43ad87eb1c260fa5bcea0b8f8d17.zip
explicit method names for fqn switch to better reflect it's intention
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/new')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Figure.javajet2
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Layout.javajet2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Figure.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Figure.javajet
index 493aeb620..8fdb00dfc 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Figure.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Figure.javajet
@@ -5,7 +5,7 @@ GraphDefDispatcher.Args args = (GraphDefDispatcher.Args) argument;
final Figure figureInstance = args.getFigure();
final String figureVarName = args.getVariableName();
final GraphDefDispatcher dispatcher = args.getDispatcher();
-final String figureClassName = dispatcher.getImportManager().getImportedName((String) dispatcher.getFQNSwitch().doSwitch(figureInstance));
+final String figureClassName = dispatcher.getFQNSwitch().get(figureInstance, dispatcher.getImportManager());
// PRODUCES instance AND (!) initializes attributes
%>
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Layout.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Layout.javajet
index e4c1b82b2..e298ae16c 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Layout.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/Layout.javajet
@@ -11,7 +11,7 @@ final GraphDefDispatcher dispatcher = argsBundle.getDispatcher();
<%
Layout gmfLayout= figureMarker.getLayout();
if (gmfLayout != null){
- final String layouterImplClass = dispatcher.getImportManager().getImportedName((String) dispatcher.getFQNSwitch().doSwitch(gmfLayout));
+ final String layouterImplClass = dispatcher.getFQNSwitch().get(gmfLayout, dispatcher.getImportManager());
%>
<%=layouterImplClass%> <%=layouterVarName%> = new <%=layouterImplClass%>();
<%=argsBundle.getDispatcher().dispatch(gmfLayout, argsBundle)%>

Back to the top