use of org.eclipse.xtext.ui.util.JavaProjectClasspathChangeAnalyzer in project xtext-eclipse by eclipse.
the class JavaProjectsStateTest method createProjectsState.
@Override
protected JavaProjectsState createProjectsState(IStorage2UriMapper mapper) {
JavaProjectsState result = new JavaProjectsState();
result.setMapper(mapper);
result.setJdtHelper(new JdtHelper());
result.setJavaProjectClasspathChangeAnalyzer(new JavaProjectClasspathChangeAnalyzer());
JavaProjectsStateHelper javaProjectsStateHelper = new JavaProjectsStateHelper();
javaProjectsStateHelper.setMapper(mapper);
javaProjectsStateHelper.setUriMapperExtensions((IStorage2UriMapperJdtExtensions) ((Storage2UriMapperImpl) mapper).getContribution());
javaProjectsStateHelper.setWorkspace(ResourcesPlugin.getWorkspace());
result.setJavaProjectsHelper(javaProjectsStateHelper);
WorkspaceProjectsStateHelper workspaceStateHelper = new WorkspaceProjectsStateHelper();
workspaceStateHelper.setMapper(mapper);
workspaceStateHelper.setWorkspace(ResourcesPlugin.getWorkspace());
result.setProjectsHelper(workspaceStateHelper);
return result;
}
use of org.eclipse.xtext.ui.util.JavaProjectClasspathChangeAnalyzer in project xtext-eclipse by eclipse.
the class Storage2UriMapperJavaImplTest method createFreshStorage2UriMapper.
protected Storage2UriMapperJavaImpl createFreshStorage2UriMapper() {
Storage2UriMapperJavaImpl mapper = new Storage2UriMapperJavaImpl();
mapper.setUriValidator(new UriValidator() {
@Override
public boolean isPossiblyManaged(IStorage storage) {
return "indexed".equals(storage.getFullPath().getFileExtension());
}
@Override
public boolean isValid(URI uri, IStorage storage) {
return "indexed".equals(storage.getFullPath().getFileExtension());
}
});
mapper.setLocator(new JarEntryLocator());
mapper.setWorkspace(ResourcesPlugin.getWorkspace());
mapper.setWorkspaceLockAccess(new WorkspaceLockAccess());
mapper.setJavaProjectClasspathChangeAnalyzer(new JavaProjectClasspathChangeAnalyzer());
return mapper;
}
use of org.eclipse.xtext.ui.util.JavaProjectClasspathChangeAnalyzer in project xtext-eclipse by eclipse.
the class StrictJavaProjectsStateTest method createProjectsState.
@Override
protected StrictJavaProjectsState createProjectsState(IStorage2UriMapper mapper) {
StrictJavaProjectsState result = new StrictJavaProjectsState();
result.setMapper(mapper);
result.setJdtHelper(new JdtHelper());
result.setJavaProjectClasspathChangeAnalyzer(new JavaProjectClasspathChangeAnalyzer());
JavaProjectsStateHelper javaProjectsStateHelper = new JavaProjectsStateHelper();
javaProjectsStateHelper.setMapper(mapper);
javaProjectsStateHelper.setUriMapperExtensions((IStorage2UriMapperJdtExtensions) ((Storage2UriMapperImpl) mapper).getContribution());
javaProjectsStateHelper.setWorkspace(ResourcesPlugin.getWorkspace());
result.setHelper(javaProjectsStateHelper);
return result;
}
Aggregations