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
*/
public class PackageExplorerPart extends ViewPart 
	implements ISetSelectionTarget, IMenuListener,
		IShowInTarget,
		IPackagesViewPart,  IPropertyChangeListener, 
		IViewPartInputProvider {
	
	private boolean fIsCurrentLayoutFlat; 
	private static final int HIERARCHICAL_LAYOUT= 0x1;
	private static final int FLAT_LAYOUT= 0x2;
	
	public final static String VIEW_ID= JavaUI.ID_PACKAGES;
				
	
	static final String TAG_SELECTION= "selection"; 
	static final String TAG_EXPANDED= "expanded"; 
	static final String TAG_ELEMENT= "element"; 
	static final String TAG_PATH= "path"; 
	static final String TAG_VERTICAL_POSITION= "verticalPosition"; 
	static final String TAG_HORIZONTAL_POSITION= "horizontalPosition"; 
	static final String TAG_FILTERS = "filters"; 
	static final String TAG_FILTER = "filter"; 
	static final String TAG_LAYOUT= "layout"; 
	
	private PackageExplorerContentProvider fContentProvider;
	private FilterUpdater fFilterUpdater;
	
	private PackageExplorerActionGroup fActionSet;
	private ProblemTreeViewer fViewer; 
	private Menu fContextMenu;