Author: scabanovich
Date: 2010-03-03 10:08:57 -0500 (Wed, 03 Mar 2010)
New Revision: 20619
Modified:
branches/jbosstools-3.1.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5920
Modified:
branches/jbosstools-3.1.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java 2010-03-03
15:03:40 UTC (rev 20618)
+++
branches/jbosstools-3.1.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java 2010-03-03
15:08:57 UTC (rev 20619)
@@ -12,6 +12,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorRegistry;
@@ -21,7 +22,6 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
import org.jboss.tools.vpe.ui.test.VpeTest;
/**
@@ -36,8 +36,8 @@
//test for
https://jira.jboss.org/jira/browse/JBIDE-5920
public void testOpenOnInProjectWith2URLPatterns() throws Throwable{
- IProject project = ProjectsLoader.getInstance()
- .getProject(JsfAllTests.IMPORT_TEST_WITH_2_URL_PATTERNS_PROJECT_NAME);
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ JsfAllTests.IMPORT_TEST_WITH_2_URL_PATTERNS_PROJECT_NAME);
IFile file = (IFile) project.findMember("WebContent/index.jsp");
//$NON-NLS-1$
IEditorInput editorInput = new FileEditorInput(file);
OpenOnUtil.checkOpenOnInEditor(editorInput, getEditorId(file.getName()), 5, 30,
"welcome.xhtml"); //$NON-NLS-1$