Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-10-31 08:26:06 -0500
committeratikhomirov2006-10-31 08:26:06 -0500
commitaea05e51dc7c619a43f9e98404a4cc275e277500 (patch)
tree99d40f1a08b4aed7fecef605bc0b2411c25be8f8 /plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf
parente5abcdee1e9c901d6d3ccdecaa76ac7cbf046608 (diff)
downloadorg.eclipse.gmf-tooling-aea05e51dc7c619a43f9e98404a4cc275e277500.tar.gz
org.eclipse.gmf-tooling-aea05e51dc7c619a43f9e98404a4cc275e277500.tar.xz
org.eclipse.gmf-tooling-aea05e51dc7c619a43f9e98404a4cc275e277500.zip
let subclasses override figure generator
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StandaloneGenerator.java11
1 files changed, 8 insertions, 3 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 7ecaa2ad9..5a542364a 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
@@ -22,11 +22,12 @@ 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;
import org.eclipse.gmf.internal.common.codegen.TextMerger;
public class StandaloneGenerator extends GeneratorBase {
private final Config myArgs;
- private final FigureGenerator myFigureGenerator;
+ private final TextEmitter myFigureGenerator;
private DelegateImportManager myMapModeImportHack;
private final StandaloneEmitters myAuxiliaryGenerators;
private boolean mySkipPluginStructire;
@@ -130,10 +131,14 @@ public class StandaloneGenerator extends GeneratorBase {
strategy = new MapModeCodeGenStrategy.StaticIdentityMapMode();
}
- myFigureGenerator = new FigureGenerator(fqnSwitch, strategy, false);
+ myFigureGenerator = createFigureGenerator(fqnSwitch, strategy);
myAuxiliaryGenerators = new StandaloneEmitters();
}
-
+
+ protected TextEmitter createFigureGenerator(FigureQualifiedNameSwitch fqnSwitch, MapModeCodeGenStrategy strategy) {
+ return new FigureGenerator(fqnSwitch, strategy, false);
+ }
+
/**
* Allows clients to skip generating of manifest.mf, pligin and build properties files.
* "New-plugin-by-template" generator uses this feature because it delegates this generation to PDE defaults.

Back to the top