Bug 123424 browsing perspective does not show some packages in hierarchical mode
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java
switchViewer(fState);
		}
	}
	private void switchViewer(int state) {
		
		if (fCurrViewState == state)
			return;
		else {
			fCurrViewState= state;
			IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
			store.setValue(getViewSite().getId() + TAG_VIEW_STATE, state);
		}
		
		StructuredViewer viewer= fWrappedViewer.getViewer();
		Object object= viewer.getInput();
		ISelection selection= viewer.getSelection();
		
		Control control= createViewer(fWrappedViewer.getControl().getParent()).getControl();
		setUpViewer(fWrappedViewer);
		createSelectAllAction();
		
		fWrappedViewer.setViewerInput(object);
		fWrappedViewer.getControl().setFocus();
		fWrappedViewer.setSelection(selection, true);
		
		viewer.getContentProvider().dispose();
		viewer.getControl().dispose();
		
		if (control != null && !control.isDisposed()) {
			control.setVisible(true);