public MappingsLanguageExtendedGenerator() { 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(); }
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(); }
@Before @Override public void setUp() throws Exception { super.setUp(); with(Modules2.mixin(new XtextRuntimeModule(), new AbstractModule() { @Override protected void configure() { bind(IFragmentProvider.class).to(TestSelectorFragmentProvider.class); } })); }
@Override public Injector createInjector() { return Guice.createInjector(Modules2.mixin(new XtextRuntimeModule(), new XtextIdeModule())); }