use of org.eclipse.xtext.common.types.access.ClasspathTypeProviderFactory in project xtext-xtend by eclipse.
the class NoJRESmokeTester method processFile.
@Override
public void processFile(String data) throws Exception {
XtextResourceSet resourceSet = new XtextResourceSet();
NoOpClassLoader classLoader = new NoOpClassLoader();
resourceSet.setClasspathURIContext(classLoader);
ClasspathTypeProviderFactory factory = new ClasspathTypeProviderFactory(classLoader, typeResourceServices);
factory.createTypeProvider(resourceSet);
EObject parsed = parseHelperNoJRE.parse(data, resourceSet);
EcoreUtil.resolveAll(parsed);
checkNoErrorsInValidator(data, (XtextResource) parsed.eResource());
}
Aggregations