Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add tooltips to decorators?
How to add tooltips to decorators? [message #161728] Wed, 21 November 2007 03:46 Go to next message
Eclipse UserFriend
Hi!

I have implemented IDecorator successfully which adds small
icons to the nodes in my diagrams.

I want to add tooltips to these icons!

How do I do this?

Cheers,
Nicolai


--

I'm using an evaluation license of nemo since 79 days.
You should really try it!
http://www.malcom-mac.com/nemo
Re: How to add tooltips to decorators? [message #161767 is a reply to message #161728] Wed, 21 November 2007 05:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

Hi Nicolai,

do you have validation decorators enabled? Then
XxxValidationDecoratorProvider is the right place to see how it works.

It's done like the following (inside AbstractDecorator#refresh):

org.eclipse.draw2d.Label label = new Label("tool tip");
getDecoration().setToolTip(label);

Nicolai Kamenzky schrieb:
> Hi!
>
> I have implemented IDecorator successfully which adds small
> icons to the nodes in my diagrams.
>
> I want to add tooltips to these icons!
>
> How do I do this?
>
> Cheers,
> Nicolai
>
>
Re: How to add tooltips to decorators? [message #161898 is a reply to message #161767] Wed, 21 November 2007 12:57 Go to previous message
Eclipse UserFriend
Thanks Jan!

With your help it was an easy task!

Cheers,
Nicolai


--

I'm using an evaluation license of nemo since 79 days.
You should really try it!
http://www.malcom-mac.com/nemo
Previous Topic:Edit an existing ResourceSet in a GMF editor
Next Topic:Rotation of EditParts possible?
Goto Forum:
  


Current Time: Fri Jul 18 13:40:00 EDT 2025

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

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

Back to the top