/* * generated by Xtext 2.14.0 */ 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 bindIValueConverterService() { return typeof(RdlTerminalConverters); } // the following two are used to allow URI based include mechanism // 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 bindIGlobalScopeProvider() { //return typeof(ResourceSetGlobalScopeProvider) return typeof(org.eclipse.xtext.scoping.impl.ImportUriGlobalScopeProvider) } // def Class bindIGeneratorConfiguration() { // return GeneratorConfiguration; // } // def IGeneratorConfiguration bindIGeneratorConfiguration() { // return new GeneratorConfiguration(); // } }