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
}
	
	public void testRemoveCUFromPackageNotLogicalPackage() throws Exception {
		
		ICompilationUnit cu= fPack81.createCompilationUnit("Object.java", "", true, null); 
		
		fMyPart.fViewer.setInput(fJProject2);
	
		fMyPart.clear();
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= TestDelta.createCUDelta(new ICompilationUnit[] { cu }, fPack81, IJavaElementDelta.REMOVED);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();
		
		assertTrue("Refresh happened", fMyPart.hasRefreshHappened()); 
		assertTrue("Correct package refreshed", fMyPart.getRefreshedObject().contains(fPack81)); 
		assertEquals("Correct number of refreshes", 1, fMyPart.getRefreshedObject().size()); 
	}
	
	public void testAddCUFromPackageNotLogicalPackage() throws Exception {
		ICompilationUnit cu= fPack81.createCompilationUnit("Object.java", "", true, null); 
		
		fMyPart.fViewer.setInput(fJProject2);
		fMyPart.clear();
		IElementChangedListener listener= (IElementChangedListener) fProvider;
		IJavaElementDelta delta= TestDelta.createCUDelta(new ICompilationUnit[] { cu }, fPack81, IJavaElementDelta.ADDED);
		listener.elementChanged(new ElementChangedEvent(delta, ElementChangedEvent.POST_CHANGE));
		
		pushDisplay();