Bug 105034 [WorkbenchParts] IWorkbenchPage#hideView(IViewPart) does not always dispose of the view any more
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/browsing/PackagesViewContentProviderTests2.java
fPack81= fRoot1.createPackageFragment("pack3.pack8", true, null);
		
		fPack21.createCompilationUnit("Object.java", "", true, null);
		fPack61.createCompilationUnit("Object.java","", true, null);
		
		
		setUpMockView();
	}
	
	public void setUpMockView() throws Exception{
		
		fWorkbench= PlatformUI.getWorkbench();
		assertNotNull(fWorkbench);
		
		fPage= fWorkbench.getActiveWorkbenchWindow().getActivePage();
		assertNotNull(fPage);
		
		
		IViewPart myPart= new MockPluginView();
		((MockPluginView)myPart).setListState(true);
		myPart= fPage.showView("org.eclipse.jdt.ui.tests.browsing.MockPluginView");
		if (myPart instanceof MockPluginView) {
			fMyPart= (MockPluginView) myPart;
			
			fProvider= (IStructuredContentProvider)fMyPart.getTreeViewer().getContentProvider();
				
			fProvider.inputChanged(null,null,fJProject2);
			JavaCore.removeElementChangedListener((IElementChangedListener) fProvider);
		} else assertTrue("Unable to get view",false);