public ReactionsLanguageExtendedGenerator() { new XtextStandaloneSetup() { public Injector createInjector() { return Guice.createInjector(new XtextRuntimeModule() { public void configureIXtext2EcorePostProcessor(com.google.inject.Binder binder) { binder.bind(IXtext2EcorePostProcessor.class).to(ReactionsLanguageXtext2EcorePostProcessor.class); }; }); }; }.createInjectorAndDoEMFRegistration(); }
/** * @since 2.9 */ public void configureIXtext2EcorePostProcessor(Binder binder) { try { Class.forName("org.eclipse.xtend.expression.ExecutionContext"); binder.bind(IXtext2EcorePostProcessor.class).to(XtendXtext2EcorePostProcessor.class); } catch (ClassNotFoundException e) { } }
public IXtext2EcorePostProcessor getPostProcessor() { return postProcessor; }
public void setPostProcessor(IXtext2EcorePostProcessor postProcessor) { this.postProcessor = postProcessor; }