Modidy a package name of nemo
[nemo.git] / nemo-tools / eclipse-plugin / nemo-editor / org.opendaylight.nemo.tool.eclipse.plugin.editor / src-gen / org / opendaylight / nemo / tool / eclipse / plugin / AbstractEditorRuntimeModule.java
1 /*
2  * generated by Xtext
3  */
4 package org.opendaylight.nemo.tool.eclipse.plugin;
5
6 import java.util.Properties;
7
8 import org.eclipse.xtext.Constants;
9
10 import com.google.inject.Binder;
11 import com.google.inject.name.Names;
12
13 /**
14  * Manual modifications go to {org.opendaylight.nemo.tool.eclipse.plugin.EditorRuntimeModule}
15  */
16 @SuppressWarnings("all")
17 public abstract class AbstractEditorRuntimeModule extends org.eclipse.xtext.common.types.DefaultCommonTypesRuntimeModule {
18
19         protected Properties properties = null;
20
21         @Override
22         public void configure(Binder binder) {
23                 properties = tryBindProperties(binder, "org/opendaylight/nemo/tool/eclipse/plugin/Editor.properties");
24                 super.configure(binder);
25         }
26         
27         public void configureLanguageName(Binder binder) {
28                 binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.opendaylight.nemo.tool.eclipse.plugin.Editor");
29         }
30         
31         public void configureFileExtensions(Binder binder) {
32                 if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
33                         binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("nemo");
34         }
35         
36         // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
37         public java.lang.ClassLoader bindClassLoaderToInstance() {
38                 return getClass().getClassLoader();
39         }
40
41         // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
42         public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
43                 return org.opendaylight.nemo.tool.eclipse.plugin.services.EditorGrammarAccess.class;
44         }
45
46         // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
47         public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
48                 return org.opendaylight.nemo.tool.eclipse.plugin.serializer.EditorSemanticSequencer.class;
49         }
50
51         // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
52         public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
53                 return org.opendaylight.nemo.tool.eclipse.plugin.serializer.EditorSyntacticSequencer.class;
54         }
55
56         // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
57         public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
58                 return org.eclipse.xtext.serializer.impl.Serializer.class;
59         }
60
61         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
62         public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
63                 return org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.EditorParser.class;
64         }
65
66         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
67         public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
68                 return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
69         }
70
71         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
72         public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
73                 return org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.EditorAntlrTokenFileProvider.class;
74         }
75
76         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
77         public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
78                 return org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.internal.InternalEditorLexer.class;
79         }
80
81         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
82         public com.google.inject.Provider<org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.internal.InternalEditorLexer> provideInternalEditorLexer() {
83                 return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.internal.InternalEditorLexer.class);
84         }
85
86         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
87         public void configureRuntimeLexer(com.google.inject.Binder binder) {
88                 binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.opendaylight.nemo.tool.eclipse.plugin.parser.antlr.internal.InternalEditorLexer.class);
89         }
90
91         // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
92         public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
93                 return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
94         }
95
96         // contributed by org.eclipse.xtext.generator.validation.ValidatorFragment
97         @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.opendaylight.nemo.tool.eclipse.plugin.validation.EditorValidator> bindEditorValidator() {
98                 return org.opendaylight.nemo.tool.eclipse.plugin.validation.EditorValidator.class;
99         }
100
101         // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
102         public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
103                 return org.opendaylight.nemo.tool.eclipse.plugin.scoping.EditorScopeProvider.class;
104         }
105
106         // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
107         public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
108                 binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
109         }
110
111         // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
112         public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
113                 binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
114         }
115
116         // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
117         public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
118                 return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
119         }
120
121         // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
122         public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
123                 return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
124         }
125
126         // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
127         public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
128                 return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
129         }
130
131         // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
132         public void configureIResourceDescriptions(com.google.inject.Binder binder) {
133                 binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
134         }
135
136         // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
137         public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
138                 binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
139         }
140
141         // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
142         public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
143                 return org.opendaylight.nemo.tool.eclipse.plugin.generator.EditorGenerator.class;
144         }
145
146         // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
147         public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
148                 return org.opendaylight.nemo.tool.eclipse.plugin.formatting.EditorFormatter.class;
149         }
150
151         // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment
152         public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
153                 return org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider.class;
154         }
155
156 }