Class AbstractGenericResourceSupport

  • All Implemented Interfaces:
    org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

    public abstract class AbstractGenericResourceSupport
    extends java.lang.Object
    implements org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
    This class is intended to be used in an MWE workflow. It instantiates and registers Xtext support for a non-Xtext based EMF resources, e.g. to reference model elements from any Xtext language.
    • Constructor Detail

      • AbstractGenericResourceSupport

        public AbstractGenericResourceSupport()
    • Method Detail

      • preInvoke

        public void preInvoke()
        Specified by:
        preInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
      • setGuiceModule

        public void setGuiceModule​(com.google.inject.Module module)
      • getGuiceModule

        protected com.google.inject.Module getGuiceModule()
      • createGuiceModule

        protected abstract com.google.inject.Module createGuiceModule()
      • registerInRegistry

        protected void registerInRegistry​(boolean force)
        Parameters:
        force - true if you want to override existing service providers.
        Since:
        2.1
      • invoke

        public void invoke​(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)
        Specified by:
        invoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
      • postInvoke

        public void postInvoke()
        Specified by:
        postInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent