Search in sources :

Example 1 with JavaProjectsStateHelper

use of org.eclipse.xtext.ui.containers.JavaProjectsStateHelper 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());
    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;
}
Also used : JavaProjectsState(org.eclipse.xtext.ui.containers.JavaProjectsState) JavaProjectsStateHelper(org.eclipse.xtext.ui.containers.JavaProjectsStateHelper) Storage2UriMapperImpl(org.eclipse.xtext.ui.resource.Storage2UriMapperImpl) WorkspaceProjectsStateHelper(org.eclipse.xtext.ui.containers.WorkspaceProjectsStateHelper) JdtHelper(org.eclipse.xtext.ui.shared.JdtHelper)

Example 2 with JavaProjectsStateHelper

use of org.eclipse.xtext.ui.containers.JavaProjectsStateHelper 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)2 Storage2UriMapperImpl (org.eclipse.xtext.ui.resource.Storage2UriMapperImpl)2 JdtHelper (org.eclipse.xtext.ui.shared.JdtHelper)2 JavaProjectsState (org.eclipse.xtext.ui.containers.JavaProjectsState)1 StrictJavaProjectsState (org.eclipse.xtext.ui.containers.StrictJavaProjectsState)1 WorkspaceProjectsStateHelper (org.eclipse.xtext.ui.containers.WorkspaceProjectsStateHelper)1