org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider Java Examples

The following examples show how to use org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImportURIScopingFragment2.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected TypeReference getDelegateScopeProvider() {
	if (xbaseUsageDetector.inheritsXbase(getLanguage().getGrammar()))
		return typeRef("org.eclipse.xtext.xbase.scoping.XImportSectionNamespaceScopeProvider");
	else
		return typeRef(SimpleLocalScopeProvider.class);
}
 
Example #2
Source File: ImportURIScopingFragment2.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public TypeReference getDelegateScopeProvider() {
	if (xbaseUsageDetector.inheritsXbase(getLanguage().getGrammar())) {
		return TypeReference.typeRef("org.eclipse.xtext.xbase.scoping.XImportSectionNamespaceScopeProvider");
	} else {
		return TypeReference.typeRef(SimpleLocalScopeProvider.class);
	}
}
 
Example #3
Source File: ImportURIScopingFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected Class<? extends IScopeProvider> getLocalScopeProvider() {
	return SimpleLocalScopeProvider.class;
}
 
Example #4
Source File: Bug287941TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureIScopeProviderDelegate(Binder binder) {
	binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(SimpleLocalScopeProvider.class);
}
 
Example #5
Source File: DefaultRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IScopeProvider> bindIScopeProvider() {
	return SimpleLocalScopeProvider.class;
}
 
Example #6
Source File: AbstractIgnoreCaseImportsTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void configureIScopeProviderDelegate(Binder binder) {
	binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(SimpleLocalScopeProvider.class);
}
 
Example #7
Source File: Bug311337TestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
	binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named("org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegate")).to(SimpleLocalScopeProvider.class);
}