Community
Participate
Working Groups
I20060315-1200 There is no way to get a hold of the currently showing annotation hover, similar to what ITextViewer::getCurrentTextHover provides. I will add a patch that provides similar API on ISourceViewerExtension3.
Created attachment 36476 [details] org.eclipse.jface.text.diff Patch against jface.text.
Created attachment 36477 [details] JavaEditor.java.diff Patch against JavaEditor.java, to treat visible annotation hovers similar to the text hovers when F2 is pressed.
See also bug 66661 and bug 98482 for similar requests (for quick diff and the overview ruler).
+1
Please resolve for M6.
I looked through the patches and released the API part in Platform Text with some modifications: - rejected change to visibility of fVerticalRulerHoveringController: this should remain private and there's no need to make it package visible - at least not for this PR - added missing @since 3.2 tags - added missing Javadoc The change in the Java editor is half-backed and can't be released as is: the interaction between text and annotation hover is often wrong and the position of the annotation presenter is off by one line. I filed bug 133355 to fix this in RC1. Marking this bug as fixed since the API is in place.
Note that the added method to ISourceViewerExtension3 is a breaking change for any client implementing this interface. A warning should be sent to the mailing list to give adopters advance notice of the change.
Thanks John, I will send a note to the list.