RDL-Editor/com.minres.rdl.parent/com.minres.rdl/src/com/minres/rdl/RDLRuntimeModule.xtend

37 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-09-12 12:48:21 +02:00
/*
* generated by Xtext 2.14.0
2017-09-12 12:48:21 +02:00
*/
package com.minres.rdl
import org.eclipse.xtext.conversion.IValueConverterService
import com.minres.rdl.converter.RdlTerminalConverters
import org.eclipse.xtext.scoping.IGlobalScopeProvider
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class RDLRuntimeModule extends AbstractRDLRuntimeModule {
override Class<? extends IValueConverterService> bindIValueConverterService() {
return typeof(RdlTerminalConverters);
}
// the following two are used to allow URI based include mechanism
2017-09-12 12:48:21 +02:00
// contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
override void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
binder.bind(typeof(org.eclipse.xtext.scoping.IScopeProvider)).
annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).
to(typeof(org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider));
}
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
override Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() {
//return typeof(ResourceSetGlobalScopeProvider)
return typeof(org.eclipse.xtext.scoping.impl.ImportUriGlobalScopeProvider)
}
2022-10-24 20:18:49 +02:00
// def Class<? extends IGeneratorConfiguration> bindIGeneratorConfiguration() {
// return GeneratorConfiguration;
// }
// def IGeneratorConfiguration bindIGeneratorConfiguration() {
// return new GeneratorConfiguration();
// }
2017-09-12 12:48:21 +02:00
}