Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to implement Tool tip for tree items
How to implement Tool tip for tree items [message #895309] Thu, 12 July 2012 12:28 Go to next message
becks m is currently offline becks mFriend
Messages: 59
Registered: June 2012
Member
Hi,


Is there a way to add tool tip support in the edit plugin ?
if not, so how could I do this for the tree items ?
Re: How to implement Tool tip for tree items [message #895320 is a reply to message #895309] Thu, 12 July 2012 12:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
I'm not sure how tool tips work in JFace. How are they specified for a
TreeViewer?


On 12/07/2012 2:28 PM, becks m wrote:
> Hi,
>
>
> Is there a way to add tool tip support in the edit plugin ?
> if not, so how could I do this for the tree items ?
Re: How to implement Tool tip for tree items [message #895328 is a reply to message #895320] Thu, 12 July 2012 13:06 Go to previous messageGo to next message
becks m is currently offline becks mFriend
Messages: 59
Registered: June 2012
Member
I think that label provider should extend DecoratingStyledCellLabelProvider or ColumnLabelProvider to be able to override
getToolTipText() method

[Updated on: Thu, 12 July 2012 13:07]

Report message to a moderator

Re: How to implement Tool tip for tree items [message #895331 is a reply to message #895328] Thu, 12 July 2012 13:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6501
Registered: July 2009
Senior Member
Yes. CellLabelProvider is the base interface to get them, and you also
have to enable through ColumnViewerTooltipSupport

Tom

Am 12.07.12 15:06, schrieb becks m:
> I think that label provider should extend
> DecoratingStyledCellLabelProvider or ColumnLabelProvider
Re: How to implement Tool tip for tree items [message #895332 is a reply to message #895331] Thu, 12 July 2012 13:17 Go to previous message
becks m is currently offline becks mFriend
Messages: 59
Registered: June 2012
Member
great, but how can I add this to the edit plugin as emf has its own structure for extend and I cannot change it
Previous Topic:My Model is getting to big...
Next Topic:Problem with eSetResource(null, null) in EMF from GMF in Eclipse Juno
Goto Forum:
  


Current Time: Sat Aug 24 06:56:49 GMT 2019

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

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

Back to the top