org.eclipse.xtext.common.types.access.jdt.IJdtTypeProvider Java Examples
The following examples show how to use
org.eclipse.xtext.common.types.access.jdt.IJdtTypeProvider.
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: JdtFallbackTypeProviderFactory.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** {@inheritDoc} */ @Override public IJvmTypeProvider findTypeProvider(final ResourceSet resourceSet) { IJvmTypeProvider result = super.findTypeProvider(resourceSet); if ((result instanceof IJdtTypeProvider) && !(result instanceof JdtFallbackTypeProvider)) { return createBundleAwareDelegate((IJdtTypeProvider) result, resourceSet); } return result; }
Example #2
Source File: JdtBasedSimpleTypeScopeProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public JdtBasedSimpleTypeScope createTypeScope(IJvmTypeProvider typeProvider, Predicate<IEObjectDescription> filter) { return new JdtBasedSimpleTypeScope((IJdtTypeProvider) typeProvider, qualifiedNameConverter, filter); }
Example #3
Source File: JdtBasedSimpleTypeScope.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public JdtBasedSimpleTypeScope(IJdtTypeProvider typeProvider, IQualifiedNameConverter qualifiedNameConverter, Predicate<IEObjectDescription> filter) { super(typeProvider, qualifiedNameConverter, filter); }
Example #4
Source File: JdtBasedSimpleTypeScope.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public IJdtTypeProvider getTypeProvider() { return (IJdtTypeProvider) super.getTypeProvider(); }
Example #5
Source File: JdtBasedConstructorScope.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected IJdtTypeProvider getTypeProvider() { return getTypeScope().getTypeProvider(); }
Example #6
Source File: JdtFallbackTypeProviderFactory.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
@Override public IJdtTypeProvider createTypeProvider(final ResourceSet resourceSet) { IJdtTypeProvider result = super.createTypeProvider(resourceSet); return createBundleAwareDelegate(result, resourceSet); }
Example #7
Source File: XtxtUMLReferenceProposalTypeScope.java From txtUML with Eclipse Public License 1.0 | 4 votes |
public XtxtUMLReferenceProposalTypeScope(IJdtTypeProvider typeProvider, IQualifiedNameConverter qualifiedNameConverter, Predicate<IEObjectDescription> filter) { super(typeProvider, qualifiedNameConverter, filter); }
Example #8
Source File: JdtFallbackTypeProviderFactory.java From dsl-devkit with Eclipse Public License 1.0 | 3 votes |
/** * Creates a new bundle aware JdtFallbackTypeProvider. * <p> * <em>Note</em>: Uses a custom bundle class finder to locate and load classes. * </p> * * @param typeProvider * the {@link IJdtTypeProvider}, may be {@code null} * @param resourceSet * the {@link ResourceSet}, must not be {@code null} * @return the {@link IJdtTypeProvider}, never {@code null} */ protected IJdtTypeProvider createBundleAwareDelegate(final IJdtTypeProvider typeProvider, final ResourceSet resourceSet) { IJdtTypeProvider firstProvider = typeProvider instanceof NullJdtTypeProvider ? null : typeProvider; BundleAwareTypeProvider bundleAwareTypeProvider = new BundleAwareTypeProvider(classLoader, resourceSet, indexedJvmTypeAccess, typeResourceServices); JdtFallbackTypeProvider result = new JdtFallbackTypeProvider(firstProvider, bundleAwareTypeProvider); resourceSet.getResourceFactoryRegistry().getProtocolToFactoryMap().put(URIHelperConstants.PROTOCOL, result); return result; }
Example #9
Source File: JdtFallbackTypeProvider.java From dsl-devkit with Eclipse Public License 1.0 | 2 votes |
/** * Creates a new instance of {@link JdtFallbackTypeProvider}. * * @param first * the first {@link IJdtTypeProvider}, may be {@code null} * @param second * the second {@link IJvmTypeProvider}, must not be {@code null} */ public JdtFallbackTypeProvider(final IJdtTypeProvider first, final IJvmTypeProvider second) { this.first = first; this.second = second; }