Bug 41313 "Link with Editor" in Java Outline should link on activation
I normally work with "Link with Editor" switched off. When editing a long method whose head is out of view, I want to know in which method I am without leaving the editing position. I'd like to *double*click on "Link with Editor" in the Java Outline to synchronize it with the current position (the second click just disables "Link with Editor" again). This works nicely with the Package Explorer, where a doubleclick on "Link with Editor" reveals the current file. I think this doubleclick behavior should be consistently supported by all "Link with Editor" actions.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
}
			}
		}
		return provider;
	}
	/**
	 * Returns the annotation model associated with the document displayed in the 
	 * viewer if it is an <code>IAnnotationModelExtension</code>, or <code>null</code>.
	 * 
	 * @return the displayed document's annotation model if it is an <code>IAnnotationModelExtension</code>, or <code>null</code> 
	 * @since R3.0
	 */
	private IAnnotationModelExtension getModel() {
		ISourceViewer viewer= getSourceViewer();
		if (viewer == null)
			return null;
		IAnnotationModel m= viewer.getAnnotationModel();
		if (m instanceof IAnnotationModelExtension)
			return (IAnnotationModelExtension) m;
		else
			return null;
	}
	/**
	 * Extracts the line differ from the displayed document's annotation model. If none can be found,
	 * a new differ is created and attached to the annotation model.
	 * 
	 * @return the linediffer, or <code>null</code> if none could be found or created.
	 * @since R3.0
	 */
	private DocumentLineDiffer getOrCreateDiffer() {