Search in sources :

Example 11 with JdtTypeProviderFactory

use of org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory in project xtext-eclipse by eclipse.

the class AbstractHyperlinkingTest method initializeTypeProvider.

protected void initializeTypeProvider(XtextResourceSet set) {
    JdtTypeProviderFactory typeProviderFactory = new JdtTypeProviderFactory(this);
    typeProviderFactory.findOrCreateTypeProvider(set);
    set.setClasspathURIContext(getJavaProject(set));
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory)

Aggregations

JdtTypeProviderFactory (org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory)11 XtextResourceSet (org.eclipse.xtext.resource.XtextResourceSet)5 IJvmTypeProvider (org.eclipse.xtext.common.types.access.IJvmTypeProvider)4 ResourceSetImpl (org.eclipse.emf.ecore.resource.impl.ResourceSetImpl)3 MockJavaProjectProvider (org.eclipse.xtext.common.types.access.jdt.MockJavaProjectProvider)3 Before (org.junit.Before)3 JdtBasedSimpleTypeScope (org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope)2 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)2 ResourceImpl (org.eclipse.emf.ecore.resource.impl.ResourceImpl)1 JdtBasedConstructorScope (org.eclipse.xtext.common.types.xtext.ui.JdtBasedConstructorScope)1 JdtBasedSimpleTypeScopeProvider (org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScopeProvider)1 IQualifiedNameConverter (org.eclipse.xtext.naming.IQualifiedNameConverter)1