use of org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope in project xtext-eclipse by eclipse.
the class JdtBasedSimpleTypeScopeProviderTest method testGetScope_01.
@Test
public void testGetScope_01() {
JdtBasedSimpleTypeScope scope = (JdtBasedSimpleTypeScope) scopeProvider.getScope(field.eResource(), TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE);
assertNotNull(scope);
assertSame(factory.findTypeProvider(resourceSet), scope.getTypeProvider());
}
use of org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope in project xtext-eclipse by eclipse.
the class JdtBasedConstructorScopeTest method setUp.
@Before
public void setUp() throws Exception {
projectProvider = new MockJavaProjectProvider();
factory = new JdtTypeProviderFactory(projectProvider);
resourceSet = new ResourceSetImpl();
typeScope = new JdtBasedSimpleTypeScope(factory.createTypeProvider(resourceSet), new IQualifiedNameConverter.DefaultImpl(), Predicates.<IEObjectDescription>alwaysTrue());
constructorScope = new JdtBasedConstructorScope(typeScope);
}
use of org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope in project xtext-eclipse by eclipse.
the class JdtBasedSimpleTypeScopeTest method setUp.
@Before
public void setUp() throws Exception {
projectProvider = new MockJavaProjectProvider();
factory = new JdtTypeProviderFactory(projectProvider);
resourceSet = new ResourceSetImpl();
typeScope = new JdtBasedSimpleTypeScope(factory.createTypeProvider(resourceSet), new IQualifiedNameConverter.DefaultImpl(), Predicates.<IEObjectDescription>alwaysTrue());
}
Aggregations