org.eclipse.xtext.common.types.access.impl.TypeResourceServices Java Examples

The following examples show how to use org.eclipse.xtext.common.types.access.impl.TypeResourceServices. 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: JdtTypeProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @since 2.8
 * @noreference This constructor is not intended to be referenced by clients.
 */
public JdtTypeProvider(IJavaProject javaProject, ResourceSet resourceSet,
		IndexedJvmTypeAccess indexedJvmTypeAccess, WorkingCopyOwner workingCopyOwner, TypeResourceServices services) {
	super(resourceSet, indexedJvmTypeAccess, services);
	if (javaProject == null)
		throw new IllegalArgumentException("javaProject may not be null");
	this.javaProject = javaProject;
	this.typeUriHelper = createTypeURIHelper();
	this.workingCopyOwner = workingCopyOwner;
	this.typeFactory = createTypeFactory();
}
 
Example #2
Source File: CachingClasspathTypeProviderFactory.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
public CachingClasspathTypeProviderFactory(ClassLoader classLoader, TypeResourceServices services) {
	super(classLoader, services);
	reusedFactory = newClassReaderTypeFactory(classLoader);
}
 
Example #3
Source File: ClasspathTypeProviderFactory.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
public ClasspathTypeProviderFactory(ClassLoader classLoader, TypeResourceServices services) {
	this.classLoader = classLoader;
	this.services = services;
}
 
Example #4
Source File: CachingReflectionTypeProvider.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public CachingReflectionTypeProvider(ClassLoader classLoader, ResourceSet resourceSet,
		IndexedJvmTypeAccess indexedJvmTypeAccess, ReflectionTypeFactory reusedFactory, TypeResourceServices services) {
	super(classLoader, resourceSet, indexedJvmTypeAccess, services);
	this.reusedFactory = reusedFactory;
}
 
Example #5
Source File: ReflectionTypeProvider.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public ReflectionTypeProvider(ClassLoader classLoader, ResourceSet resourceSet, IndexedJvmTypeAccess indexedJvmTypeAccess, TypeResourceServices services) {
	super(resourceSet, indexedJvmTypeAccess, services);
	classFinder = createClassFinder(classLoader);
	uriHelper = createClassURIHelper();
	reflectionTypeFactory = createDeclaredTypeFactory();
}
 
Example #6
Source File: ReflectionTypeProviderFactory.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
public ReflectionTypeProviderFactory(ClassLoader classLoader, TypeResourceServices services) {
	this.classLoader = classLoader;
	this.services = services;
}
 
Example #7
Source File: CachingReflectionTypeProviderFactory.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
public CachingReflectionTypeProviderFactory(ClassLoader classLoader, TypeResourceServices services) {
	super(classLoader, services);
	ReflectionTypeFactory factoryDelegate = new ReflectionTypeFactory(new ReflectURIHelper());
	reusedFactory = new CachingReflectionTypeFactory(factoryDelegate);
}
 
Example #8
Source File: TypeResource.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public void setTypeResourceServices(TypeResourceServices typeResourceServices) {
	this.typeResourceServices = typeResourceServices;
}
 
Example #9
Source File: AbstractTypeProviderFactory.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
protected TypeResourceServices getServices() {
	return services;
}
 
Example #10
Source File: JdtTypeMirror.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.8
 */
public JdtTypeMirror(IType type, ITypeFactory<IType, JvmDeclaredType> typeFactory, TypeResourceServices typeResourceServices) {
	super(typeResourceServices);
	this.mirroredType = type;
	this.typeFactory = typeFactory;
}
 
Example #11
Source File: JdtFallbackTypeProviderFactory.java    From dsl-devkit with Eclipse Public License 1.0 3 votes vote down vote up
/**
 * Creates a new instance of {@link JdtFallbackTypeProviderFactory}.
 * 
 * @param javaProjectProvider
 *          the {@link IJavaProjectProvider}, may be {@code null}
 * @param classLoader
 *          the {@link ClassLoader}, must not be {@code null}
 * @param indexedJvmTypeAccess
 *          the {@link IndexedJvmTypeAccess}, may be {@code null}
 */
@Inject
public JdtFallbackTypeProviderFactory(final IJavaProjectProvider javaProjectProvider, final ClassLoader classLoader, final IndexedJvmTypeAccess indexedJvmTypeAccess, final TypeResourceServices typeResourceServices) {
  super(javaProjectProvider);
  this.classLoader = classLoader;
  this.indexedJvmTypeAccess = indexedJvmTypeAccess;
  this.typeResourceServices = typeResourceServices;
}
 
Example #12
Source File: BundleAwareTypeProvider.java    From dsl-devkit with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Creates a new instance of {@link BundleAwareTypeProvider}.
 * 
 * @param classLoader
 *          the {@link ClassLoader}, may be {@code null}
 * @param resourceSet
 *          the {@link ResourceSet}, must not be {@code null}
 * @param indexedJvmTypeAccess
 *          the {@link IndexedJvmTypeAccess}, may be {@code null}
 */
public BundleAwareTypeProvider(final ClassLoader classLoader, final ResourceSet resourceSet, final IndexedJvmTypeAccess indexedJvmTypeAccess, final TypeResourceServices typeResourceServices) {
  super(classLoader, resourceSet, indexedJvmTypeAccess, typeResourceServices);
}