Bug 28474 selection in packages view incorrect when switching editors
use project swt in source for example. 1) open an editor for cu COM in org.eclipse.swt.internal.ole.win32. open an editor for a cu in a different project. 3)make sure browsing view is linked to editor 2)make sure packages view is in hierarchical mode. 3)click in package explorer on project swt. DO NOT expand in packages view. 4)now bring the editor for COM to top. Notice the expansion in the packages view is not complete. Ie. the logical package org.eclipse.swt.internal.ole.win23 is not visible and highlighted. 20021216. JRT.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java
private static final String TAG_VIEW_STATE= ".viewState"; 
	private static final int LIST_VIEW_STATE= 0;
	private static final int TREE_VIEW_STATE= 1;
	private static class StatusBarUpdater4LogicalPackage extends StatusBarUpdater {
		private StatusBarUpdater4LogicalPackage(IStatusLineManager statusLineManager) {
			super(statusLineManager);
		}
		protected String formatMessage(ISelection sel) {
			if (sel instanceof IStructuredSelection) {
				IStructuredSelection selection= (IStructuredSelection)sel;
				int nElements= selection.size();
				Object elem= selection.getFirstElement();
				if (nElements == 1 && (elem instanceof LogicalPackage))
					return formatLogicalPackageMessage((LogicalPackage) elem);
			}
			return super.formatMessage(sel);
		}
		private String formatLogicalPackageMessage(LogicalPackage logicalPackage) {
			IPackageFragment[] fragments= logicalPackage.getFragments();
			StringBuffer buf= new StringBuffer(logicalPackage.getElementName());