Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-02-27 14:39:00 +0000
committeratikhomirov2007-02-27 14:39:00 +0000
commitce28e4138a17827fa2b370644161b007ba1408b1 (patch)
tree94551fd027a06285081ff4f1fcb7516c06b91a94 /plugins/org.eclipse.gmf.graphdef.codegen
parent495d855a5de73d3b2ae166664587488772eeb7e8 (diff)
downloadorg.eclipse.gmf-tooling-ce28e4138a17827fa2b370644161b007ba1408b1.tar.gz
org.eclipse.gmf-tooling-ce28e4138a17827fa2b370644161b007ba1408b1.tar.xz
org.eclipse.gmf-tooling-ce28e4138a17827fa2b370644161b007ba1408b1.zip
clean hack with delegating import assistant
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java
index b8082907b..7ce7c30a1 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java
@@ -19,7 +19,6 @@ import org.eclipse.gmf.common.codegen.ImportAssistant;
import org.eclipse.gmf.gmfgraph.Figure;
import org.eclipse.gmf.gmfgraph.util.FigureQualifiedNameSwitch;
import org.eclipse.gmf.internal.common.codegen.DefaultTextMerger;
-import org.eclipse.gmf.internal.common.codegen.DelegateImportManager;
import org.eclipse.gmf.internal.common.codegen.GeneratorBase;
import org.eclipse.gmf.internal.common.codegen.ImportUtil;
import org.eclipse.gmf.internal.common.codegen.TextEmitter;
@@ -28,7 +27,6 @@ import org.eclipse.gmf.internal.common.codegen.TextMerger;
public class StandaloneGenerator extends GeneratorBase {
protected final Config myArgs;
private final TextEmitter myFigureGenerator;
- private DelegateImportManager myMapModeImportHack;
private final StandaloneEmitters myAuxiliaryGenerators;
private boolean mySkipPluginStructire;
protected final FigureQualifiedNameSwitch myFigureNameSwitch;
@@ -126,7 +124,6 @@ public class StandaloneGenerator extends GeneratorBase {
MapModeCodeGenStrategy strategy;
String accessor;
if (config.needsMapMode()) {
- myMapModeImportHack = new DelegateImportManager();
strategy = MapModeCodeGenStrategy.DYNAMIC;
accessor = pluginActivatorFQN + ".getDefault().";
} else {
@@ -192,9 +189,6 @@ public class StandaloneGenerator extends GeneratorBase {
private String visitFigure(Figure figure) throws InterruptedException {
final ImportAssistant importAssistant = new ImportUtil(getPackageName(), CodeGenUtil.validJavaIdentifier(figure.getName()));
Object[] args = new Object[] { figure, importAssistant };
- if (myMapModeImportHack != null) {
- myMapModeImportHack.setDelegate(importAssistant);
- }
doGenerateJavaClass(myFigureGenerator, getPackageName(), importAssistant.getCompilationUnitName(), args);
return composeFQN(getPackageName(), importAssistant.getCompilationUnitName());
}

Back to the top