Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Tooltip Control like in Java Editor
Tooltip Control like in Java Editor [message #227310] Tue, 14 August 2007 13:57 Go to next message
Eclipse UserFriend
Originally posted by: mike.werner.brain-child.de

Hello,

is there a general component which realizes a tooltip window like the one
of the Java Editor. I'd like to show rich tooltips but it seems that there
is no such component.

Mike
Re: Tooltip Control like in Java Editor [message #227317 is a reply to message #227310] Tue, 14 August 2007 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

There are multiple ways of doing what you want. One way is to use the
new JFace custom tooltip:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet011CustomTooltips.java?view=markup

I believe the JDT is using PopupDialog from JFace as it has more built
into functionality than the JFace tooltip which is very barebones.

Cheers,

~ Chris
Re: Tooltip Control like in Java Editor [message #228750 is a reply to message #227317] Wed, 22 August 2007 09:58 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Chris Aniszczyk wrote:

> There are multiple ways of doing what you want. One way is to use the
> new JFace custom tooltip:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet011CustomTooltips.java?view=markup
>
>
> I believe the JDT is using PopupDialog from JFace as it has more built
> into functionality than the JFace tooltip which is very barebones.

Not true. The PopupDialog is used for the quick views not for hovers.
The textual editors have their own framework to display tool tips (aka
hovers). This uses a DefaultInformationControl (uses Text widget) or the
BrowserInformationControl (uses Browser widget) to display the information.

Dani

>
> Cheers,
>
> ~ Chris
Previous Topic:possible END key handling bug in Eclipse?
Next Topic:TPTP -GUI Recorder standard mode error
Goto Forum:
  


Current Time: Thu Apr 25 14:26:34 GMT 2024

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

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

Back to the top