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/PackagesViewDeltaTests.java
fMyPart.fViewer.setInput(fJProject);
		fMyPart.clear();
		IPackageFragment test= fRoot1.createPackageFragment("pack3.test", true, null); 
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.ADDED, test);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		
		assertTrue("Add happened", fMyPart.hasAddHappened()); 
		assertTrue("Correct package added", fMyPart.getAddedObject().contains(test)); 
	}
	
	public void testAddFragmentToLogicalPackage() throws Exception {
		
		LogicalPackage cp4= new LogicalPackage(fPack41);
		cp4.add(fPack42);
		cp4.add(fInternalPack4);
		  
		  
		fProvider.getChildren(cp4);
		
		IPackageFragment pack101= fRoot1.createPackageFragment("pack3.pack4.pack10", true, null); 
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.ADDED, pack101);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		
		pushDisplay();