use of org.eclipse.xtext.ui.util.JdtClasspathUriResolver in project xtext-eclipse by eclipse.
the class JavaProjectResourceSetInitializer method initialize.
@Override
public void initialize(ResourceSet resourceSet, IProject project) {
if (resourceSet instanceof XtextResourceSet) {
XtextResourceSet casted = (XtextResourceSet) resourceSet;
IJavaProject javaProject = JavaCore.create(project);
if (javaProject != null && javaProject.exists()) {
casted.getURIConverter().getURIMap().putAll(computePlatformURIMap(javaProject));
casted.setClasspathURIContext(javaProject);
casted.setClasspathUriResolver(new JdtClasspathUriResolver());
}
}
}
Aggregations