Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Tooltip extra large
Tooltip extra large [message #131971] Mon, 04 June 2007 07:38 Go to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Hi,

When I create a tool tip on an element with a label, the tool tip is
very big.

Label labelView = new Label(text);
labelView.setSize(10, 10);
((ClasseFigure) getFigure()).setToolTip(labelView);

Have you an idea ?

Thanks
Re: Tooltip extra large [message #166296 is a reply to message #131971] Mon, 24 December 2007 00:37 Go to previous message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

I use the tooltip code from "GMF Tips":

if (getToolTip() == null) {
setToolTip(new Label(tooltipText));
} else if (getToolTip() instanceof Label) {
((Label) getToolTip()).setText(tooltipText);
}

Is there a way to make something like a text area instead of a long
string of characters - like eclipse does?

ex:
______________________________
|Bla bla bla bla bla bla bla.|
|Bla bla bla bla bla bla bla.|
------------------------------


instead of:
___________________________________________________________
|Bla bla bla bla bla bla bla. Bla bla bla bla bla bla bla.|
-----------------------------------------------------------


Merry Christmas :)

Tomas Zijdemans



Benjamin CHEVALLEREAU wrote:
> Hi,
>
> When I create a tool tip on an element with a label, the tool tip is
> very big.
>
> Label labelView = new Label(text);
> labelView.setSize(10, 10);
> ((ClasseFigure) getFigure()).setToolTip(labelView);
>
> Have you an idea ?
>
> Thanks
Previous Topic:Tutorial 1, hint about ensuring the right references: using "Locate Value" would be better
Next Topic:Ease of changeability of Ecore Editor
Goto Forum:
  


Current Time: Fri Apr 26 16:55:18 GMT 2024

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

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

Back to the top