Bug 183599 Navigator tests failing in N20070423-0010
tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/PipelineTest.java
import org.eclipse.ui.tests.navigator.util.TestWorkspace;
public class PipelineTest extends TestCase {
	public static final String COMMON_NAVIGATOR_INSTANCE_ID = "org.eclipse.ui.tests.navigator.PipelineTestView"; 
	public static final String COMMON_NAVIGATOR_RESOURCE_EXT = "org.eclipse.ui.navigator.resourceContent"; 
	
	public static final String COMMON_NAVIGATOR_JAVA_EXT = "org.eclipse.jdt.java.ui.javaContent"; 
	private Set expectedChildren = new HashSet();
	private IProject project;
	private CommonViewer viewer;
	private INavigatorContentService contentService;
	protected void setUp() throws Exception {
		TestWorkspace.init();
		IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
		project = root.getProject("Test"); 
		expectedChildren.add(project.getFolder("src")); 
		expectedChildren.add(project.getFolder("bin")); 
		expectedChildren.add(project.getFile(".project")); 
		expectedChildren.add(project.getFile(".classpath"));  
		expectedChildren.add(project.getFile("model.properties")); 
		EditorTestHelper.showView(COMMON_NAVIGATOR_INSTANCE_ID, true);
		IWorkbenchWindow activeWindow = PlatformUI.getWorkbench()
				.getActiveWorkbenchWindow();
		IWorkbenchPage activePage = activeWindow.getActivePage();
		IViewPart commonNavigator = activePage
				.findView(COMMON_NAVIGATOR_INSTANCE_ID);
		commonNavigator.setFocus();
		viewer = (CommonViewer) commonNavigator.getAdapter(CommonViewer.class);
		contentService = viewer.getNavigatorContentService();
		IUndoableOperation updateFilters = new UpdateActiveFiltersOperation(
				viewer, new String[0], true);