Search in sources :

Example 1 with JdtTypeProvider

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

the class JavaElementFinderTest method setUp.

@Before
public void setUp() throws Exception {
    resourceSet = new ResourceSetImpl();
    projectProvider = new MockJavaProjectProvider();
    projectProvider.setUseSource(true);
    typeProvider = new JdtTypeProvider(projectProvider.getJavaProject(resourceSet), resourceSet);
    elementFinder = new JavaElementFinder();
    elementFinder.setProjectProvider(projectProvider);
}
Also used : ResourceSetImpl(org.eclipse.emf.ecore.resource.impl.ResourceSetImpl) JdtTypeProvider(org.eclipse.xtext.common.types.access.jdt.JdtTypeProvider) MockJavaProjectProvider(org.eclipse.xtext.common.types.access.jdt.MockJavaProjectProvider) Before(org.junit.Before)

Aggregations

ResourceSetImpl (org.eclipse.emf.ecore.resource.impl.ResourceSetImpl)1 JdtTypeProvider (org.eclipse.xtext.common.types.access.jdt.JdtTypeProvider)1 MockJavaProjectProvider (org.eclipse.xtext.common.types.access.jdt.MockJavaProjectProvider)1 Before (org.junit.Before)1