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/MockPluginView.java
fViewer= createViewer(parent);
		
		fContentProvider= super.createContentProvider();
		fContentProvider.inputChanged(fViewer, null, null);
		
		fViewer.setContentProvider(fContentProvider);
	}
	
	/* Override so that tests can set layout state.
	 * 
	 * (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.browsing.PackagesView#isInListState()
	 */
	protected boolean isInListState(){
		return fListState;	
	}
	
	/**
	 * Set the view is in flat or hierarchical state.
	 * @param state
	 */
	void setListState(boolean state){
		fListState= state;	
	}
	
	public void clear() {
		fAddedObject.clear();
		fRefreshedObject.clear();
		fAddedParentObject.clear();