Java 类org.eclipse.xtext.xbase.compiler.IGeneratorConfigProvider 实例源码

项目:CARMA    文件:CARMAInjectorProviderCustom.java   
@Override
protected CARMARuntimeModule createRuntimeModule() {
    // make it work also with Maven/Tycho and OSGI
    // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
    return new CARMARuntimeModule() {
        @Override
        public ClassLoader bindClassLoaderToInstance() {
            return CARMAInjectorProvider.class
                    .getClassLoader();
        }

       @SuppressWarnings("restriction")
    @Override
         public void configure(Binder binder) {
          super.configure(binder);
          binder.bind(IGeneratorConfigProvider.class).to(MyGeneratorConfigProvider.class);
         }
    };
}
项目:xtext-extras    文件:SingletonGeneratorConfigModule.java   
@Override
public void configure(Binder binder) {
    binder.bind(IGeneratorConfigProvider.class).to(GeneratorConfigProvider.class);
}
项目:xtext-extras    文件:JavaVersionModule.java   
@Override
public void configure(Binder binder) {
    binder.bind(IGeneratorConfigProvider.class).toInstance(new GeneratorConfigProvider());
}
项目:dsl-devkit    文件:CheckUiModule.java   
/**
 * Fix for NPE in EclipseGeneratorConfigProvider.
 * 
 * @return GeneratorConfigProvider
 */
@Override
public Class<? extends IGeneratorConfigProvider> bindIGeneratorConfigProvider() {
  return GeneratorConfigProvider.class;
}
项目:dsl-devkit    文件:CheckCfgUiModule.java   
/**
 * Fix for NPE in EclipseGeneratorConfigProvider.
 *
 * @return GeneratorConfigProvider
 */
@Override
public Class<? extends IGeneratorConfigProvider> bindIGeneratorConfigProvider() {
  return GeneratorConfigProvider.class;
}