/** EMF ext glue code */ private void initializeEcoreInjector() { injector = Guice.createInjector(Modules.override( Modules.override(new ScreenRuntimeModule()).with( new ScreenUiModule(plugin))).with( new SharedStateModule())); }
protected Module getSharedStateModule() { return new SharedStateModule(); }
@Override protected Injector getInjector() { // TODO: Provide a sharedDomainModule via DomainRegistry to allow // overriding of generic bindings return Guice.createInjector(new SharedStateModule(), new SCTXtextIntegrationModule()); }
@Override protected Module getContextModule() { return Modules.combine(new EclipseContextModule(), new SharedStateModule()); }
protected Module getLanguageModule() { Module languageModule = Modules.override(getLanguageRuntimeModule()) .with(getLanguageUiModule()); return Modules.override(languageModule).with(new SharedStateModule()); }