Bug 32714 Packages View: flickering and loosing expanded state when logical package is selected with hierarchical layout
In the java browsing perspective: - enable hierarchical layout for the packages view - select a logical package in the packages view - select types/methods in the types/methods views -> the packages view flickers and looses the expanded state (the tree is only expanded upto the logical package, other expanded subtrees are collapsed)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java
if (element instanceof IPackageFragmentRoot) {
					IPackageFragmentRoot root= (IPackageFragmentRoot) element;
					String label= JavaElementLabels.getElementLabel(root, JavaElementLabels.DEFAULT_QUALIFIED | JavaElementLabels.ROOT_QUALIFIED);
					if (firstTime) {
						buf.append(label);
						firstTime= false;
					}
					else
						message= JavaBrowsingMessages.getFormattedString("StatusBar.concat", new String[] {message, label}); 
				}
			}
			buf.append(message);
			return buf.toString();
		}
	};
	private SelectAllAction fSelectAllAction;
	
	private int fCurrViewState;
	
	private PackageViewerWrapper fWrappedViewer;
	
	private MultiActionGroup fSwitchActionGroup;
	private boolean fLastInputWasProject;
	
	/**
	 * Adds filters the viewer of this part.
	 */
	protected void addFilters() {
		super.addFilters();
		getViewer().addFilter(createNonJavaElementFilter());