Java 类org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider 实例源码

项目:xtext-extras    文件:AbstractScopingFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    BindFactory factory = new BindFactory();
    if (!XbaseGeneratorFragment.doesUseXbase(grammar)) {
        if(isGenerateStub) {
            factory.addTypeToType(IScopeProvider.class.getName(), getScopeProviderName(grammar, getNaming()));
        } else {
            factory.addTypeToType(IScopeProvider.class.getName(), getLocalScopeProvider().getName());
        }
        factory.addConfiguredBinding(
                IScopeProvider.class.getName() + "Delegate",
                "binder.bind(" + IScopeProvider.class.getName() + ".class"
                        + ").annotatedWith(com.google.inject.name.Names.named("
                        + AbstractDeclarativeScopeProvider.class.getName() + ".NAMED_DELEGATE" + ")).to("
                        + getLocalScopeProvider().getName() + ".class)");
        factory.addTypeToType(IGlobalScopeProvider.class.getName(), getGlobalScopeProvider().getName());
    }
    factory.addConfiguredBinding(IgnoreCaseLinking.class.getSimpleName(), "binder.bindConstant().annotatedWith("
            + IgnoreCaseLinking.class.getName() + ".class).to(" + isIgnoreCase() + ")");
    return factory.getBindings();
}
项目:CooperateModelingEnvironment    文件:CooperateNamingBindingsFragment2.java   
private void registerGuiceBindingsRt() {
    new GuiceModuleAccess.BindingFactory()
            .addTypeToType(typeRef(IQualifiedNameProvider.class), typeRef(CommonQualifiedNameProvider.class))
            .addTypeToType(typeRef(IAlternativeNameProvider.class), typeRef(CommonQualifiedNameProvider.class))
            .addConfiguredBinding("IScopeProviderDelegate", new StringConcatenationClient() {
                @Override
                protected void appendTo(TargetStringConcatenation target) {
                    target.append("binder.bind(");
                    target.append(typeRef(IScopeProvider.class));
                    target.append(".class).annotatedWith(");
                    target.append(typeRef(Names.class));
                    target.append(".named(");
                    target.append(typeRef(AbstractDeclarativeScopeProvider.class));
                    target.append(".NAMED_DELEGATE)).to(");
                    target.append(typeRef(CooperateImportedNamespaceAwareLocalScopeProvider.class));
                    target.append(".class);");
                }
            }).contributeTo(getLanguage().getRuntimeGenModule());
}
项目:xtext-core    文件:IgnoreCaseLinkingWithDifferentWildcardTest.java   
@Override
public void setUp() throws Exception {
    super.setUp();
    with(new IgnoreCaseNamespacesTestLanguageStandaloneSetup() {
        @Override
        public Injector createInjector() {
            return Guice.createInjector(new IgnoreCaseNamespacesTestLanguageRuntimeModule() {
                @Override
                public void configureIScopeProviderDelegate(Binder binder) {
                    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(OtherWildcardLocalScopeProvider.class);
                }
            });
        }
    });
}
项目:packtpub-xtext-book-examples    文件:SmallJavaRuntimeModule.java   
@Override
public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
    binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class)
            .annotatedWith(
                    com.google.inject.name.Names
                            .named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
            .to(SmallJavaImportedNamespaceAwareLocalScopeProvider.class);
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:n4js    文件:AbstractTypesRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:n4js    文件:AbstractRegularExpressionRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:bromium    文件:AbstractBromiumRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:gw4e.project    文件:AbstractDSLPoliciesRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:lcdsl    文件:AbstractLcDslRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:gemoc-studio    文件:AbstractDslRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:OCCI-Studio    文件:AbstractOCCIRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-extras    文件:AbstractPureXbaseRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:xtext-extras    文件:AbstractXbaseRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:xtext-extras    文件:AbstractXbaseWithAnnotationsRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguage1RuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-extras    文件:AbstractContentAssistTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguage2RuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-extras    文件:XbaseGeneratorFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    if (!usesXbaseGrammar(grammar))
        return emptySet();
    BindFactory config = new BindFactory()

            // overrides binding from org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
            .addTypeToType(IQualifiedNameProvider.class.getName(),
                            "org.eclipse.xtext.xbase.scoping.XbaseQualifiedNameProvider");

    if (useInferredJvmModel) {
        config = config
                .addTypeToType(ILocationInFileProvider.class.getName(),
                        "org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider")
                .addTypeToType(IGlobalScopeProvider.class.getName(),
                        "org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider")
                .addTypeToType("org.eclipse.xtext.xbase.validation.FeatureNameValidator",
                        "org.eclipse.xtext.xbase.validation.LogicalContainerAwareFeatureNameValidator")
                .addTypeToType("org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver",
                        "org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver")
                .addTypeToType("org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver",
                        "org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver")
                .addTypeToType(IResourceValidator.class.getCanonicalName(), 
                        "org.eclipse.xtext.xbase.annotations.validation.DerivedStateAwareResourceValidator");
        if(generateXtendInferrer) {
            config = config
                .addTypeToType("org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer",
                    getJvmModelInferrerName(grammar, getNaming()));
        }
    } else {
        config = config
                .addTypeToType(ILocationInFileProvider.class.getName(),
                            "org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider");

    }
    if (usesXImportSection(grammar)) {
        config = config.addConfiguredBinding(
                IScopeProvider.class.getName() + "Delegate",
                "binder.bind("
                        + IScopeProvider.class.getName()
                        + ".class).annotatedWith(com.google.inject.name.Names.named("
                        + AbstractDeclarativeScopeProvider.class.getName()
                        + ".NAMED_DELEGATE)).to("+ getImportScopeProvider(grammar)+")");
    }
    return config.getBindings();
}
项目:xtext-extras    文件:AbstractScopingFragment.java   
protected String getDefaultScopeProviderSuperClassName() {
    return AbstractDeclarativeScopeProvider.class.getName();
}
项目:xtext-extras    文件:AbstractBug462047LangRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:xtext-extras    文件:AbstractXImportSectionTestLangRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:xtext-extras    文件:AbstractContentAssistFragmentTestLangRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class);
}
项目:M2Doc    文件:AbstractMyDslRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:minitl    文件:AbstractMinitlRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractPartialContentAssistTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractPartialSerializationTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractIndentationAwareUiTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractFileAwareTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractSimpleBeeLangTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractBeeLangTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractExBeeLangTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractXtextGrammarTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:AbstractNoJdtTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
}
项目:xtext-core    文件:FileAwareTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class)
        .annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
        .to(FileAwareTestLanguageImportScopeProvider.class);
}
项目:xtext-core    文件:AbstractIgnoreCaseImportsTestLanguageRuntimeModule.java   
public void configureIScopeProviderDelegate(Binder binder) {
    binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(SimpleLocalScopeProvider.class);
}