@Override
 public Injector createInjector() {
   Module runtimeModule = new org.eclipse.xtext.xbase.XbaseRuntimeModule();
   Module ideaModule = new org.eclipse.xtext.xbase.idea.XbaseIdeaModule();
   Module mergedModule = Modules2.mixin(runtimeModule, ideaModule);
   return Guice.createInjector(mergedModule);
 }
 @Override
 public Injector createInjector() {
   final ExBeeLangTestLanguageRuntimeModule runtimeModule =
       new ExBeeLangTestLanguageRuntimeModule();
   final ExBeeLangTestLanguageIdeaModule ideaModule = new ExBeeLangTestLanguageIdeaModule();
   final Module mergedModule = Modules2.mixin(runtimeModule, ideaModule);
   return Guice.createInjector(mergedModule);
 }
 @Override
 public Injector createInjector() {
   Module runtimeModule =
       new org.eclipse.xtext.parsetree.impl.CommentAssociationTestLanguageRuntimeModule();
   Module ideaModule =
       new org.eclipse.xtext.parsetree.impl.idea.CommentAssociationTestLanguageIdeaModule();
   Module mergedModule = Modules2.mixin(runtimeModule, ideaModule);
   return Guice.createInjector(mergedModule);
 }
 protected Injector createInjector(String language) {
   try {
     Module runtimeModule = getRuntimeModule(language);
     Module sharedStateModule = getSharedStateModule();
     Module uiModule = getUiModule(language);
     Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
     return Guice.createInjector(mergedModule);
   } catch (Exception e) {
     logger.error("Failed to create injector for " + language);
     logger.error(e.getMessage(), e);
     throw new RuntimeException("Failed to create injector for " + language, e);
   }
 }
Example #5
0
 protected Injector createInjector() {
   return Guice.createInjector(
       Modules2.mixin(new GraphitiRuntimeModule(), new Test2SprayOnMyOwnModule()));
 }
 @Override
 protected Module getSharedStateModule() {
   return Modules2.mixin(new SharedStateModule(), new JnarioSharedState());
 }