Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » subclassing AbstractInformationControlManager
subclassing AbstractInformationControlManager [message #21775] Wed, 15 July 2009 16:57 Go to next message
Chad is currently offline ChadFriend
Messages: 15
Registered: July 2009
Junior Member
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?
Re: subclassing AbstractInformationControlManager [message #649638 is a reply to message #21775] Thu, 20 January 2011 02:24 Go to previous message
Mark A. Ziesemer is currently offline Mark A. ZiesemerFriend
Messages: 2
Registered: July 2009
Location: Appleton, WI
Junior Member
I ran into the same issue, and requested an enhancement for this at https://bugs.eclipse.org/bugs/show_bug.cgi?id=334846 . (Additionally, I'd like to use this on a Tree / TreeViewer.)
Previous Topic:TableWrapLayout: position element at the beginning of a new row?
Next Topic:Form head client next to title like before 3.3 or replace title with StyledText?
Goto Forum:
  


Current Time: Fri Mar 29 05:21:56 GMT 2024

Powered by FUDForum. Page generated in 0.03165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top