Java 类org.eclipse.xtext.XtextRuntimeModule 实例源码

项目:Vitruv    文件:MappingsLanguageExtendedGenerator.java   
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();
    }
项目:Vitruv    文件:ReactionsLanguageExtendedGenerator.java   
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();
}
项目:dsl-devkit    文件:AbstractSelectorFragmentProviderTest.java   
@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);
    }
  }));
}
项目:xtext-core    文件:XtextIdeSetup.java   
@Override
public Injector createInjector() {
    return Guice.createInjector(Modules2.mixin(new XtextRuntimeModule(), new XtextIdeModule()));
}