Search in sources :

Example 1 with JdtBasedConstructorScope

use of org.eclipse.xtext.common.types.xtext.ui.JdtBasedConstructorScope 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);
}
Also used : JdtTypeProviderFactory(org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory) ResourceSetImpl(org.eclipse.emf.ecore.resource.impl.ResourceSetImpl) JdtBasedSimpleTypeScope(org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope) JdtBasedConstructorScope(org.eclipse.xtext.common.types.xtext.ui.JdtBasedConstructorScope) MockJavaProjectProvider(org.eclipse.xtext.common.types.access.jdt.MockJavaProjectProvider) IEObjectDescription(org.eclipse.xtext.resource.IEObjectDescription) Before(org.junit.Before)

Aggregations

ResourceSetImpl (org.eclipse.emf.ecore.resource.impl.ResourceSetImpl)1 JdtTypeProviderFactory (org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory)1 MockJavaProjectProvider (org.eclipse.xtext.common.types.access.jdt.MockJavaProjectProvider)1 JdtBasedConstructorScope (org.eclipse.xtext.common.types.xtext.ui.JdtBasedConstructorScope)1 JdtBasedSimpleTypeScope (org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScope)1 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)1 Before (org.junit.Before)1