Bug 44668 [Navigator] "Link with" button in Navigator doesn't scroll to current file if it's already selected
If you double-click on a file to open it, scroll the navigator so that you can no longer see the highlighted file, and then click on the "Link with" button in the toolbar menu, the navigator doesn't scroll to make the file visible. Clicking it repeatedly (to turn it off and on) doesn't scroll either. Intuitively one would expect that if linking is off and you click the button to turn it on, then the currently edited file should be made visible in the Navigator. Package Explorer works the same way.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
fActionSet.getForwardAction().update();
	}
	/**
	 * This viewer ensures that non-leaves in the hierarchical
	 * layout are not removed by any filters.
	 * 
	 * @since 2.1
	 */
	private ProblemTreeViewer createViewer(Composite composite) {
		return  new ProblemTreeViewer(composite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL) {
			/*
			 * @see org.eclipse.jface.viewers.StructuredViewer#filter(java.lang.Object)
			 */
			protected Object[] getFilteredChildren(Object parent) {
				List list = new ArrayList();
				ViewerFilter[] filters = fViewer.getFilters();
				Object[] children = ((ITreeContentProvider) fViewer.getContentProvider()).getChildren(parent);
				for (int i = 0; i < children.length; i++) {
					Object object = children[i];
					if (!isEssential(object)) {
						object = filter(object, parent, filters);
						if (object != null) {
							list.add(object);
						}
					} else
						list.add(object);
				}
				return list.toArray();
			}