Search in sources :

Example 1 with StrictJavaProjectsState

use of org.eclipse.xtext.ui.containers.StrictJavaProjectsState 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());
    JavaProjectsStateHelper javaProjectsStateHelper = new JavaProjectsStateHelper();
    javaProjectsStateHelper.setMapper(mapper);
    javaProjectsStateHelper.setUriMapperExtensions((IStorage2UriMapperJdtExtensions) ((Storage2UriMapperImpl) mapper).getContribution());
    javaProjectsStateHelper.setWorkspace(ResourcesPlugin.getWorkspace());
    result.setHelper(javaProjectsStateHelper);
    return result;
}
Also used : JavaProjectsStateHelper(org.eclipse.xtext.ui.containers.JavaProjectsStateHelper) Storage2UriMapperImpl(org.eclipse.xtext.ui.resource.Storage2UriMapperImpl) JdtHelper(org.eclipse.xtext.ui.shared.JdtHelper) StrictJavaProjectsState(org.eclipse.xtext.ui.containers.StrictJavaProjectsState)

Aggregations

JavaProjectsStateHelper (org.eclipse.xtext.ui.containers.JavaProjectsStateHelper)1 StrictJavaProjectsState (org.eclipse.xtext.ui.containers.StrictJavaProjectsState)1 Storage2UriMapperImpl (org.eclipse.xtext.ui.resource.Storage2UriMapperImpl)1 JdtHelper (org.eclipse.xtext.ui.shared.JdtHelper)1