Search in sources :

Example 1 with JdtTypeProviderFactory

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

the class AbstractXbaseContentAssistTest method getResourceSet.

protected final XtextResourceSet getResourceSet() {
    XtextResourceSet resourceSet = get(XtextResourceSet.class);
    IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this);
    typeProviderFactory.findOrCreateTypeProvider(resourceSet);
    resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
    return resourceSet;
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory) XtextResourceSet(org.eclipse.xtext.resource.XtextResourceSet) IJvmTypeProvider(org.eclipse.xtext.common.types.access.IJvmTypeProvider)

Example 2 with JdtTypeProviderFactory

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

the class AbstractXbaseContentAssistTest method getResourceSet.

protected final XtextResourceSet getResourceSet() {
    XtextResourceSet resourceSet = get(XtextResourceSet.class);
    IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this);
    typeProviderFactory.findOrCreateTypeProvider(resourceSet);
    resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
    return resourceSet;
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory) XtextResourceSet(org.eclipse.xtext.resource.XtextResourceSet) IJvmTypeProvider(org.eclipse.xtext.common.types.access.IJvmTypeProvider)

Example 3 with JdtTypeProviderFactory

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

the class AbstractXbaseContentAssistBugTest method initializeTypeProvider.

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

Example 4 with JdtTypeProviderFactory

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

the class AbstractXtendContentAssistBugTest method initializeTypeProvider.

protected void initializeTypeProvider(XtextResource result) {
    XtextResourceSet resourceSet = (XtextResourceSet) result.getResourceSet();
    IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this);
    typeProviderFactory.findOrCreateTypeProvider(resourceSet);
    resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory) XtextResourceSet(org.eclipse.xtext.resource.XtextResourceSet) IJvmTypeProvider(org.eclipse.xtext.common.types.access.IJvmTypeProvider)

Example 5 with JdtTypeProviderFactory

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

the class AbstractXbaseContentAssistTest method getResourceSet.

protected final XtextResourceSet getResourceSet() {
    XtextResourceSet resourceSet = get(XtextResourceSet.class);
    IJvmTypeProvider.Factory typeProviderFactory = new JdtTypeProviderFactory(this);
    typeProviderFactory.findOrCreateTypeProvider(resourceSet);
    resourceSet.setClasspathURIContext(getJavaProject(resourceSet));
    return resourceSet;
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory) XtextResourceSet(org.eclipse.xtext.resource.XtextResourceSet) IJvmTypeProvider(org.eclipse.xtext.common.types.access.IJvmTypeProvider)

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