Author: dgolovin
Date: 2007-10-22 15:51:05 -0400 (Mon, 22 Oct 2007)
New Revision: 4427
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
RedHat mentioned WebDevelopment Perspective Factory was removed. All references were
updated.
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-10-22
19:51:02 UTC (rev 4426)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-10-22
19:51:05 UTC (rev 4427)
@@ -39,7 +39,7 @@
import org.eclipse.ui.progress.UIJob;
import org.jboss.tools.common.model.XJob;
import org.jboss.tools.common.test.util.TestProjectProvider;
-import org.jboss.tools.jst.web.ui.RedHat4WebPerspectiveFactory;
+import org.jboss.tools.jst.web.ui.WebDevelopmentPerspectiveFactory;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamPackage;
import org.jboss.tools.seam.core.SeamCorePlugin;
@@ -65,7 +65,7 @@
super.setUp();
//ScopePresentationActionProvider.setPackageStructureFlat(false);
WorkbenchUtils.getWorkbench().showPerspective(
- RedHat4WebPerspectiveFactory.PERSPECTIVE_ID,
+ WebDevelopmentPerspectiveFactory.PERSPECTIVE_ID,
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow());
TestProjectProvider provider=null;
project =
(IProject)ResourcesPlugin.getWorkspace().getRoot().findMember("TestComponentView");
@@ -380,9 +380,13 @@
item2.getAction().run();
refreshProject(project);
-
+ navigator.getCommonViewer().refresh();
navigator.getCommonViewer().expandAll();
-
+ Object[] expanded = navigator.getCommonViewer().getExpandedElements();
+ for (Object object : expanded) {
+ System.out.println(object.getClass().getName());
+ System.out.println(object);
+ }
Tree tree = navigator.getCommonViewer().getTree();
updateTree(tree);
@@ -412,9 +416,10 @@
item2.getAction().run();
refreshProject(project);
-
+ navigator.getCommonViewer().refresh();
navigator.getCommonViewer().expandAll();
-
+ Object[] expanded = navigator.getCommonViewer().getExpandedElements();
+
Tree tree = navigator.getCommonViewer().getTree();
updateTree(tree);
Show replies by date