Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2017-06-28 07:43:53 -0400
committerJuergen Haug2017-06-28 08:21:32 -0400
commitcc5abdb0ab8d353b3a0144e9ec9f7121d0a71d25 (patch)
treeeedd341c4b63b69da0dfe2ca6bb14cacfbcca0a4 /plugins/org.eclipse.etrice.generator.cpp
parent0fe5268ec1a2d87441edcfee52e09d4f01f36edf (diff)
downloadorg.eclipse.etrice-cc5abdb0ab8d353b3a0144e9ec9f7121d0a71d25.tar.gz
org.eclipse.etrice-cc5abdb0ab8d353b3a0144e9ec9f7121d0a71d25.tar.xz
org.eclipse.etrice-cc5abdb0ab8d353b3a0144e9ec9f7121d0a71d25.zip
[generator] AbstractGenerator binding can be overridden
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.cpp')
-rw-r--r--plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/setup/GeneratorModule.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/setup/GeneratorModule.java b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/setup/GeneratorModule.java
index 14fea065f..a2eba36af 100644
--- a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/setup/GeneratorModule.java
+++ b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/setup/GeneratorModule.java
@@ -37,14 +37,19 @@ public class GeneratorModule extends AbstractGeneratorBaseModule {
public void configure(Binder binder) {
super.configure(binder);
- binder.bind(AbstractGenerator.class).to(Main.class);
binder.bind(ProcedureHelpers.class).to(CppProcedureHelpers.class);
binder.bind(GenericProtocolClassGenerator.class).to(ProtocolClassGen.class);
binder.bind(GenericActorClassGenerator.class).to(ActorClassGen.class);
binder.bind(ImportUriResolver.class).to(ModelLocatorUriResolver.class);
}
-
+
+ @Override
+ public Class<? extends AbstractGenerator> bindAbstractGenerator() {
+ return Main.class;
+ }
+
+ @Override
public Class<? extends ILanguageExtension> bindILanguageExtension() {
return CppExtensions.class;
}

Back to the top