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
cp5.add(fPack52);
		cp5.add(fInternalPack5);
		LogicalPackage cp6= new LogicalPackage(fPack61);
		cp6.add(fPack62);
		cp6.add(fInternalPack6);
		
		LogicalPackage cp10= new LogicalPackage(fPack102);
		cp10.add(fInternalPack10);
		Object[] children= fProvider.getElements(fJProject2);
		Object[] expectedChildren= new Object[] { defaultCp, cp3, cp4, cp5, cp6, cp10, fInternalPackMetaInf, fPack21, fPack12, fPack91, fPack81, fPack17 };
		assertTrue("Wrong children founf for PackageFragment", compareArrays(children, expectedChildren)); 
	}
	
	public void testRemovePackageNotLogicalPackage() throws Exception {
		
		fProvider.getElements(fJProject2);
		fMyPart.clear();
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= new TestDelta(IJavaElementDelta.REMOVED, fPack12);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		assertTrue("Remove happened", fMyPart.hasRemoveHappened()); 
		assertTrue("Correct package removed", fMyPart.getRemovedObject().contains(fPack12)); 
	}
	
	public void testRemovePackageInTwoPackageLogicalPackage() throws Exception {
		
		fProvider.getElements(fJProject2);