Class EcoreSupport

  extended by org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
      extended by org.eclipse.xtext.ecore.EcoreSupport
All Implemented Interfaces:

public class EcoreSupport
extends AbstractGenericResourceSupport

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 {}

Sven Efftinge - Initial contribution and API

Constructor Summary
Method Summary
protected createGuiceModule()
Methods inherited from class org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
getGuiceModule, invoke, postInvoke, preInvoke, registerInRegistry, setGuiceModule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public EcoreSupport()
Method Detail


protected createGuiceModule()
Specified by:
createGuiceModule in class AbstractGenericResourceSupport