use of org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScopeProvider in project xtext-eclipse by eclipse.
the class JdtBasedSimpleTypeScopeProviderTest method setUp.
@Before
public void setUp() throws Exception {
projectProvider = new MockJavaProjectProvider();
factory = new JdtTypeProviderFactory(projectProvider);
IQualifiedNameConverter qualifiedNameConverter = new IQualifiedNameConverter.DefaultImpl();
scopeProvider = new JdtBasedSimpleTypeScopeProvider(factory, qualifiedNameConverter);
resourceSet = new ResourceSetImpl();
resource = new ResourceImpl();
resource.setURI(URI.createURI("http://does/not/exist.file"));
emptyResource = new ResourceImpl();
emptyResource.setURI(URI.createURI("http://does/not/exist.file2"));
resourceSet.getResources().add(emptyResource);
resourceSet.getResources().add(resource);
field = TypesFactory.eINSTANCE.createJvmField();
resource.getContents().add(field);
}
Aggregations