Package org.eclipse.xtext.ecore
Class EcoreSupport
- java.lang.Object
-
- org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
-
- org.eclipse.xtext.ecore.EcoreSupport
-
- All Implemented Interfaces:
org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
,org.eclipse.xtext.ISetup
public class EcoreSupport extends org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport implements org.eclipse.xtext.ISetup
This class is intended to be used from an MWE workflow. It instantiates and registers the Ecore support for Xtext, which allows for referencing ecore models from any Xtext language. Usage:component = org.eclipse.xtext.ecore.EcoreSupport{}
If you want to provide a different guice guiceModule than the default one (EcoreRuntimeModule
) in order to change any implementation classes, you can make use of the property guiceModule. E.g. :component = org.eclipse.xtext.ecore.EcoreSupport{ guiceModule = my.special.CustomizedEcoreRuntimeModule {} }
-
-
Constructor Summary
Constructors Constructor Description EcoreSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.inject.Module
createGuiceModule()
com.google.inject.Injector
createInjectorAndDoEMFRegistration()
-
-
-
Method Detail
-
createGuiceModule
protected com.google.inject.Module createGuiceModule()
- Specified by:
createGuiceModule
in classorg.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
-
createInjectorAndDoEMFRegistration
public com.google.inject.Injector createInjectorAndDoEMFRegistration()
- Specified by:
createInjectorAndDoEMFRegistration
in interfaceorg.eclipse.xtext.ISetup
- Since:
- 2.5
-
-