Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Selfmade ToolTip on TreeViewer
Selfmade ToolTip on TreeViewer [message #273451] Wed, 06 October 2004 10:49 Go to next message
Eclipse UserFriend
Originally posted by: anonymous.newsgroups.com

Hello,

I would like to implement some kind of selfmade tooltip for my elemtens in a
TreeViewer (TreeItems). We are using SWT 2.1 and are therefor not able to
use ILabelProvider#getToolTip() method which comes with SWT 3.0.

Is it possible to generate a tooltip by ourselves? I know that I could
register a MouseTrackListener on a TreeItem but where and how can I access
the the TreeItem?

Any hints would be greatly appreciated!

Ole
Re: Selfmade ToolTip on TreeViewer [message #273519 is a reply to message #273451] Thu, 07 October 2004 03:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,

there is a code snipped for a fake tooltip on tables on
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets

I think its exactly this one: create fake tool tips for items in a table
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.ecli pse.swt.snippets/src/org/eclipse/swt/snippets/Snippet125.jav a


Perhaps you can get some ideas out of it for a TreeViewer?

Regards,

Peter

Ole Laurisch wrote:
> Hello,
>
> I would like to implement some kind of selfmade tooltip for my elemtens in a
> TreeViewer (TreeItems). We are using SWT 2.1 and are therefor not able to
> use ILabelProvider#getToolTip() method which comes with SWT 3.0.
>
> Is it possible to generate a tooltip by ourselves? I know that I could
> register a MouseTrackListener on a TreeItem but where and how can I access
> the the TreeItem?
>
> Any hints would be greatly appreciated!
>
> Ole
>
>
Re: Selfmade ToolTip on TreeViewer [message #273602 is a reply to message #273451] Thu, 07 October 2004 14:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.example.com

Where is ILabelProvider#getToolTip()? I don't see it in Eclipse 3.0.1 nor
in HEAD. I'd love to have tooltips for tree items, and can use SWT 3.0 if
need be.

Thanks,
_Rob


Ole Laurisch wrote:

> Hello,

> I would like to implement some kind of selfmade tooltip for my elemtens in a
> TreeViewer (TreeItems). We are using SWT 2.1 and are therefor not able to
> use ILabelProvider#getToolTip() method which comes with SWT 3.0.

> Is it possible to generate a tooltip by ourselves? I know that I could
> register a MouseTrackListener on a TreeItem but where and how can I access
> the the TreeItem?

> Any hints would be greatly appreciated!

> Ole
Re: Selfmade ToolTip on TreeViewer [message #273681 is a reply to message #273602] Fri, 08 October 2004 14:52 Go to previous message
Eclipse UserFriend
Rob

It is not in jface as there is no way of (currently) doing it in SWT.

Tod Creasey
Platform UI Team

"Rob Joyce" <user@example.com> wrote in message
news:ck40ir$nqn$1@eclipse.org...
> Where is ILabelProvider#getToolTip()? I don't see it in Eclipse 3.0.1 nor
> in HEAD. I'd love to have tooltips for tree items, and can use SWT 3.0 if
> need be.
>
> Thanks,
> _Rob
>
>
> Ole Laurisch wrote:
>
> > Hello,
>
> > I would like to implement some kind of selfmade tooltip for my elemtens
in a
> > TreeViewer (TreeItems). We are using SWT 2.1 and are therefor not able
to
> > use ILabelProvider#getToolTip() method which comes with SWT 3.0.
>
> > Is it possible to generate a tooltip by ourselves? I know that I could
> > register a MouseTrackListener on a TreeItem but where and how can I
access
> > the the TreeItem?
>
> > Any hints would be greatly appreciated!
>
> > Ole
>
>
Previous Topic:How to showView() from non-UI thread?
Next Topic:Possible to generate build scripts for update site project at command line
Goto Forum:
  


Current Time: Sun Jul 27 10:04:51 EDT 2025

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

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

Back to the top