Summary: | [JFace] Provide public API for StickyHoverManager, and support for various controls | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Mark A. Ziesemer <bugs> |
Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, ljpm27, markus.kell.r, remy.suen |
Version: | 3.7 | Keywords: | api |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Mark A. Ziesemer
2011-01-19 21:18:50 EST
What is your concrete use case? (In reply to comment #1) > What is your concrete use case? Providing "enrich-able" tooltips on a TreeViewer to display additional "quick" status about the nodes they contain, very similar to the tooltips that are displayed on hover over a server in WST's "Server" view (though its enrichment is limited to allowing the text to be selected and copied). I'd primarily be interested in framework code to provide method that could be hooked into an action (e.g. the F2 or F6 keybinding) to handle the focus/enrichment, as well as the mouse listener that does the same. I already have the AbstractHoverInformationControlManager working in a basic case on a Tree, properly displaying tooltips for each node. However, I seem stuck at providing a "'F2' for focus" or "mouse into" feature. I certainly can't do it without calling the internal APIs, and even then I'm not sure it's possible due to private/internal method/variable restrictions. The only sure work-around at the moment seems to be writing my own manager - which seems that it will be a lot of re-work, and wouldn't be the simplest to swap in or out later as AbstractInformationControlManager doesn't have any interfaces that could be shared. In fact, while the JDT implementation (for Javadoc hovers, etc.) seems to work flawlessly, the WST Server view is a bit buggy, especially when using the "'F6' to focus". I routinely get into the state where the tooltips stop appearing at all until I restart Eclipse. If this "sticky hover" API were made more public, I would think that the WST Server view could also benefit through reuse. >Providing "enrich-able" tooltips on a TreeViewer to display additional "quick"
>status about the nodes they contain,
The current work is in the Text layer implemented for the text editor/viewer. SWT or JFace would have to decide whether they want to provide such support and if so, one could start with the current stuff we have in Text.
|