Bug 45187 Double clicking in Package Explorer highlights class name [package explorer]
Rurn on "Show members in Package Explorer" Using EclipsePlugin as an example class name, when double clicking on a method in that class, like getDefault, getDefault is selected in the editor, but the highlight in the package explorer jumps to EclipsePlugin instead of remaining on getDefault. This is the behavior if "Link with editor" is turned on. If it is turned off, the highlight doesn't jump.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
ViewerFilter filter = filters[i];
					if (!filter.select(fViewer, parent, object))
						return null;
				}
				return object;
			}
		
			/* Checks if a filtered object in essential (ie. is a parent that
			 * should not be removed).
			 */ 
			private boolean isEssential(Object object) {
				try {
					if (!isFlatLayout() && object instanceof IPackageFragment) {
						IPackageFragment fragment = (IPackageFragment) object;
						return !fragment.isDefaultPackage() && fragment.hasSubpackages();
					}
				} catch (JavaModelException e) {
					JavaPlugin.log(e);
				}
				return false;
			}
			
			protected void handleInvalidSelection(ISelection invalidSelection, ISelection newSelection) {
				IStructuredSelection is= (IStructuredSelection)invalidSelection;
				List ns= null;
				if (newSelection instanceof IStructuredSelection) {
					ns= new ArrayList(((IStructuredSelection)newSelection).toList());
				} else {
					ns= new ArrayList();
				}