org.eclipse.xtext.common.types.xtext.AbstractTypeScopeProvider Java Examples

The following examples show how to use org.eclipse.xtext.common.types.xtext.AbstractTypeScopeProvider. 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: AbstractAppenderBuilderFragment.java    From sarl with Apache License 2.0 6 votes vote down vote up
private static void bind(BindingFactory factory, Class<?> type) {
	factory.addConfiguredBinding(
			"configureAbstractTypeScopeProviderForSourceAppender", new StringConcatenationClient() { //$NON-NLS-1$
				@Override
				protected void appendTo(TargetStringConcatenation it) {
			        it.append("binder.bind("); //$NON-NLS-1$
			        it.append(AbstractTypeScopeProvider.class);
			        it.append(".class).annotatedWith("); //$NON-NLS-1$
			        it.append(Names.class, ""); //$NON-NLS-1$
			        it.append(".named(\""); //$NON-NLS-1$
			        it.append(SCOPE_PROVIDER_NAME);
			        it.append("\")).to("); //$NON-NLS-1$
			        it.append(type);
			        it.append(".class);"); //$NON-NLS-1$
				}
			});
}
 
Example #2
Source File: DefaultCommonTypesRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends AbstractTypeScopeProvider> bindAbstractTypeScopeProvider() {
	return ClasspathBasedTypeScopeProvider.class;
}
 
Example #3
Source File: DefaultCommonTypesUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends AbstractTypeScopeProvider> bindAbstractTypeScopeProvider() {
	return JdtBasedSimpleTypeScopeProvider.class;
}
 
Example #4
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public void configureconfigureAbstractTypeScopeProviderForSourceAppender(Binder binder) {
	binder.bind(AbstractTypeScopeProvider.class).annotatedWith(Names.named("io.sarl.lang.codebuilder.appenders.SourceAppender.providerType")).to(JdtBasedSimpleTypeScopeProvider.class);
}
 
Example #5
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public void configureconfigureAbstractTypeScopeProviderForSourceAppender(Binder binder) {
	binder.bind(AbstractTypeScopeProvider.class).annotatedWith(Names.named("io.sarl.lang.codebuilder.appenders.SourceAppender.providerType")).to(ClasspathBasedTypeScopeProvider.class);
}