Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add a tooltip for element on the diagram?
How to add a tooltip for element on the diagram? [message #61358] Thu, 12 October 2006 06:26 Go to next message
Eclipse UserFriend
Hi,

Anyone konw how to add tooltip for element on the diagram? It seems that
there is no any tooltip discussion in the group :)


Best regards
Junyan
Re: How to add a tooltip for element on the diagram? [message #61506 is a reply to message #61358] Thu, 12 October 2006 09:12 Go to previous message
Eclipse UserFriend
Hi,

There are no tooltip support in the gnfgraph model.
You may try to to add something like the code below to the generated
<DiagramElement>EditPart.

/**
* @generated NOT
*/
protected IFigure createFigure() {
IFigure result = super.createFigure();
result.setToolTip(new Label("My diagram tooltip"));
return result;
}

Regards,
Michael


"Junyan" <alexmajy@gmail.com> wrote in message
news:af5a21bf201a93a7641d6460c2e3eb0f$1@www.eclipse.org...
> Hi,
>
> Anyone konw how to add tooltip for element on the diagram? It seems that
> there is no any tooltip discussion in the group :)
>
>
> Best regards
> Junyan
>
Previous Topic:advice on pure notational models
Next Topic:- getMapMode() has private in WrapLabel???
Goto Forum:
  


Current Time: Thu May 08 08:34:16 EDT 2025

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

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

Back to the top