Index: DiagramAssistantTests.java =================================================================== RCS file: /home/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.runtime.diagram.ui/src/org/eclipse/gmf/tests/runtime/diagram/ui/logic/DiagramAssistantTests.java,v retrieving revision 1.1 diff -u -r1.1 DiagramAssistantTests.java --- DiagramAssistantTests.java 14 Oct 2005 15:17:40 -0000 1.1 +++ DiagramAssistantTests.java 19 Oct 2005 14:31:01 -0000 @@ -134,8 +134,11 @@ // should not be shown if the diagram editor is not the active editor IWorkbenchPage page = PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage(); - page.activate(page.findView("org.eclipse.ui.views.ResourceNavigator")); //$NON-NLS-1$ - assertFalse(da.shouldShowDiagramAssistant()); + if (page.getViewReferences().length > 0) { + // Activate the first view found, if there is one. + page.activate(page.getViewReferences()[0].getPart(false)); + assertFalse(da.shouldShowDiagramAssistant()); + } page.activate(getDiagramWorkbenchPart()); assertTrue(da.shouldShowDiagramAssistant());