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
if (elementOfInput == null) 
				return false; 
			return showInput(elementOfInput);
		}
		ISelection selection= context.getSelection();
		if (selection != null) {
			selectReveal(selection);
			return true;
		}
		return false;
	}
	/**
	 * Returns the <code>IShowInSource</code> for this view.
	 */
	protected IShowInSource getShowInSource() {
		return new IShowInSource() {
			public ShowInContext getShowInContext() {
				return new ShowInContext(
					getViewer().getInput(),
					getViewer().getSelection());
			}
		};
	}
	/*
	 * @see org.eclipse.ui.views.navigator.IResourceNavigator#setLinkingEnabled(boolean)
	 * @since 2.1
	 */
	public void setLinkingEnabled(boolean enabled) {
		fLinkingEnabled= enabled;
		PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, enabled);