subclassing AbstractInformationControlManager [message #21775] |
Wed, 15 July 2009 12:57  |
Eclipse User |
|
|
|
I'm interested in using the code used in Eclipse's code editor that
displays a tooltip-shell with various types of information when hovering
over source code elements. Pressing F2 changes the shell's content to
display a richer set of controls which may include back/forward buttons,
etc.
I would like to leverage this functionality for displaying a similar
tooltip-ish shell when any control (e.g., a textbox) is hovered in my RCP
app. I see that I can subclass AbstractHoverInformationControlManager to
get nearly what I want. However, this class's
void setInformationControlReplacer(InformationControlReplacer replacer)
method is not accessible, and it appears to be the hook into the
functionality that swaps out a different (potentially richer) set of
controls in response to mouse or hot key action. There is a
getInternalAccessor()
method, but using this appears to be a violation of the API, and causes
'Discouraged access' warning when it's used.
Is there a way to leverage this code to do what I want without violating
the Eclipse API? Is there a better way to do what I want here?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04302 seconds