From 6e1a68e53dccd7f82171e7f36ed32dbf1e8ed90d Mon Sep 17 00:00:00 2001 From: Juergen Haug Date: Fri, 18 Apr 2014 14:41:25 +0200 Subject: [core] activated builder fragment for .config, .etmap Change-Id: Ib614a08c243b1f42906d7f7052d9d2dfcfe75f2f --- .../etrice/core/ui/AbstractConfigUiModule.java | 20 ++++++++++++++++++++ .../etrice/core/AbstractConfigRuntimeModule.java | 20 ++++++++++++++++++++ .../src/org/eclipse/etrice/core/GenerateConfig.mwe2 | 2 +- .../etrice/core/etmap/ui/AbstractETMapUiModule.java | 20 ++++++++++++++++++++ .../antlr/internal/InternalETMapLexer.java | 2 +- .../core/etmap/AbstractETMapRuntimeModule.java | 20 ++++++++++++++++++++ .../parser/antlr/internal/InternalETMapLexer.java | 2 +- .../org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 | 2 +- 8 files changed, 84 insertions(+), 4 deletions(-) diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java index c456796ea..c27802ca5 100644 --- a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java @@ -48,6 +48,26 @@ public abstract class AbstractConfigUiModule extends DefaultUiModule { return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; } + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIXtextEditorCallback() { + return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindDocumentBasedDirtyResource() { + return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class; + } + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment public Class bindIXtextBuilderParticipant() { return org.eclipse.xtext.builder.BuilderParticipant.class; diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java index c307003a5..61110b1ad 100644 --- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java +++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/AbstractConfigRuntimeModule.java @@ -129,6 +129,26 @@ public abstract class AbstractConfigRuntimeModule extends DefaultRuntimeModule { return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class; } + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIContainer$Manager() { + return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIAllContainersState$Provider() { + return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptions(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + } + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment public Class bindIGenerator() { return org.eclipse.etrice.core.generator.ConfigGenerator.class; diff --git a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2 b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2 index 1edb1196d..a90a5658f 100644 --- a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2 +++ b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/GenerateConfig.mwe2 @@ -99,7 +99,7 @@ Workflow { fragment = scoping.ImportURIScopingFragment {} // fragment = scoping.ImportNamespacesScopingFragment {} fragment = exporting.QualifiedNamesFragment {} - //fragment = builder.BuilderIntegrationFragment {} + fragment = builder.BuilderIntegrationFragment {} // generator API fragment = generator.GeneratorFragment { diff --git a/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/AbstractETMapUiModule.java b/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/AbstractETMapUiModule.java index 57e2748be..143595471 100644 --- a/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/AbstractETMapUiModule.java +++ b/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/AbstractETMapUiModule.java @@ -48,6 +48,26 @@ public abstract class AbstractETMapUiModule extends DefaultUiModule { return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; } + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIXtextEditorCallback() { + return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindDocumentBasedDirtyResource() { + return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class; + } + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment public Class bindIXtextBuilderParticipant() { return org.eclipse.xtext.builder.BuilderParticipant.class; diff --git a/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/contentassist/antlr/internal/InternalETMapLexer.java b/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/contentassist/antlr/internal/InternalETMapLexer.java index 693bdb2c7..04191f552 100644 --- a/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/contentassist/antlr/internal/InternalETMapLexer.java +++ b/plugins/org.eclipse.etrice.core.etmap.ui/src-gen/org/eclipse/etrice/core/etmap/ui/contentassist/antlr/internal/InternalETMapLexer.java @@ -14,8 +14,8 @@ import java.util.ArrayList; public class InternalETMapLexer extends Lexer { public static final int RULE_ID=4; public static final int T__22=22; - public static final int T__21=21; public static final int RULE_ANY_OTHER=10; + public static final int T__21=21; public static final int T__20=20; public static final int EOF=-1; public static final int RULE_SL_COMMENT=8; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java index fb72e30d1..c4b160179 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java @@ -124,6 +124,26 @@ public abstract class AbstractETMapRuntimeModule extends DefaultRuntimeModule { return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class; } + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIContainer$Manager() { + return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIAllContainersState$Provider() { + return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptions(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + } + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment public Class bindIGenerator() { return org.eclipse.etrice.core.etmap.generator.ETMapGenerator.class; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java index b3de7c4a0..370fb4a4b 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java @@ -14,8 +14,8 @@ import java.util.ArrayList; public class InternalETMapLexer extends Lexer { public static final int RULE_ID=4; public static final int T__22=22; - public static final int T__21=21; public static final int RULE_ANY_OTHER=10; + public static final int T__21=21; public static final int T__20=20; public static final int EOF=-1; public static final int RULE_SL_COMMENT=8; diff --git a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 index 7b368860a..9b95e8311 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 +++ b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 @@ -93,7 +93,7 @@ Workflow { // scoping and exporting API fragment = scoping.ImportURIScopingFragment {} fragment = exporting.QualifiedNamesFragment {} - //fragment = builder.BuilderIntegrationFragment {} + fragment = builder.BuilderIntegrationFragment {} // generator API fragment = generator.GeneratorFragment { -- cgit v1.2.3