Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-02-24 13:50:22 -0500
committeratikhomirov2006-02-24 13:50:22 -0500
commitb3ac3e9d8d1bb620fbd3ef5c354e66d988b78ef8 (patch)
tree20e14f28f0421e6c1442e66f9a9294e79aaca07c /plugins
parent2be9161ccc650a4482a5eb3d48a4625633db9ab3 (diff)
downloadorg.eclipse.gmf-tooling-b3ac3e9d8d1bb620fbd3ef5c354e66d988b78ef8.tar.gz
org.eclipse.gmf-tooling-b3ac3e9d8d1bb620fbd3ef5c354e66d988b78ef8.tar.xz
org.eclipse.gmf-tooling-b3ac3e9d8d1bb620fbd3ef5c354e66d988b78ef8.zip
[mgolubev] #129362 move runtime-specific fqn out from templates to external switch
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/TopConnectionGenerator.java2
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/top/PolylineConnection.javajet2
-rw-r--r--plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/util/FigureQualifiedNameSwitch.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/TopConnectionGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/TopConnectionGenerator.java
index 2824b2c07..a8bcc55b8 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/TopConnectionGenerator.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/TopConnectionGenerator.java
@@ -52,7 +52,7 @@ final GraphDefDispatcher dispatcher = (GraphDefDispatcher) args[3];
stringBuffer.append(TEXT_2);
stringBuffer.append(figure.getName());
stringBuffer.append(TEXT_3);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx"));
+ stringBuffer.append(importManager.getImportedName((String) fqnSwitch.doSwitch(figure)));
stringBuffer.append(TEXT_4);
stringBuffer.append(figure.getName());
stringBuffer.append(TEXT_5);
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/PolylineConnection.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/PolylineConnection.javajet
index c794eab65..2c6996263 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/PolylineConnection.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/top/PolylineConnection.javajet
@@ -13,7 +13,7 @@ final GraphDefDispatcher dispatcher = (GraphDefDispatcher) args[3];
/**
* @generated
*/
-public class <%=figure.getName()%> extends <%=importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx")%> {
+public class <%=figure.getName()%> extends <%=importManager.getImportedName((String) fqnSwitch.doSwitch(figure))%> {
/**
* @generated
diff --git a/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/util/FigureQualifiedNameSwitch.java b/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/util/FigureQualifiedNameSwitch.java
index b909ad18b..da00da4da 100644
--- a/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/util/FigureQualifiedNameSwitch.java
+++ b/plugins/org.eclipse.gmf.graphdef/src/org/eclipse/gmf/gmfgraph/util/FigureQualifiedNameSwitch.java
@@ -105,6 +105,6 @@ public class FigureQualifiedNameSwitch extends GMFGraphSwitch {
}
public Object casePolylineConnection(PolylineConnection object) {
- return "org.eclipse.draw2d.PolylineConnection"; //$NON-NLS-1$
+ return "org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx"; //$NON-NLS-1$
}
}

Back to the top