Java 类org.eclipse.xtext.xtext.ecoreInference.IXtext2EcorePostProcessor 实例源码

项目: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();
}
项目:xtext-core    文件:XtextRuntimeModule.java   
/**
 * @since 2.9
 */
public void configureIXtext2EcorePostProcessor(Binder binder) {
    try {
        Class.forName("org.eclipse.xtend.expression.ExecutionContext");
        binder.bind(IXtext2EcorePostProcessor.class).to(XtendXtext2EcorePostProcessor.class);
    } catch (ClassNotFoundException e) {
    }
}
项目:xtext-core    文件:XtextLinker.java   
public IXtext2EcorePostProcessor getPostProcessor() {
    return postProcessor;
}
项目:xtext-core    文件:XtextLinker.java   
public void setPostProcessor(IXtext2EcorePostProcessor postProcessor) {
    this.postProcessor = postProcessor;
}