org.eclipse.emf.codegen.ecore.xtext
Class GenModelSupport

java.lang.Object
  extended by org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
      extended by org.eclipse.emf.codegen.ecore.xtext.GenModelSupport
All Implemented Interfaces:
org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

public class GenModelSupport
extends org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport

This class is intended to be used from an MWE workflow. It instantiates and registers the GenModel support for Xtext, which allows for referencing GenModels from any Xtext language. Usage:

    component = org.eclipse.emf.codegen.ecore.xtext.GenModelSupport{}
 
If you want to provide a different guice guiceModule than the default one (GenModelRuntimeModule) in order to change any implementation classes, you can make use of the property guiceModule. E.g. :
    component = org.eclipse.emf.codegen.ecore.xtext.GenModelSupport{
       guiceModule = my.special.CustomizedGenModelRuntimeModule {}
    }
 


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

Constructor Detail

GenModelSupport

public GenModelSupport()
Method Detail

createGuiceModule

protected com.google.inject.Module createGuiceModule()
Specified by:
createGuiceModule in class org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.