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
}
	/**
	 * Answers if the given <code>element</code> is a valid
	 * input for this part.
	 * 
	 * @param 	element	the object to test
	 * @return	<true> if the given element is a valid input
	 */
	protected boolean isValidInput(Object element) {
		if (element instanceof IJavaProject || (element instanceof IPackageFragmentRoot && ((IJavaElement)element).getElementName() != IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))
			try {
				IJavaProject jProject= ((IJavaElement)element).getJavaProject();
				if (jProject != null)
					return jProject.getProject().hasNature(JavaCore.NATURE_ID);
			} catch (CoreException ex) {
				return false;
			}
		return false;
	}
	
	/**
	 * Answers if the given <code>element</code> is a valid
	 * element for this part.
	 * 
	 * @param 	element	the object to test
	 * @return	<true> if the given element is a valid element
	 */
	protected boolean isValidElement(Object element) {
		if (element instanceof IPackageFragment) {
			IJavaElement parent= ((IPackageFragment)element).getParent();