Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to have multi line labels
How to have multi line labels [message #68813] Wed, 25 October 2006 05:23 Go to next message
Eclipse UserFriend
Originally posted by: juan.bernabo.igphone.com

Hi,

I was unable to locate the old articles that talk about this, they are
unreachable, so I'm posting this again.

Thanks in advance
Juan.
Re: How to have multi line labels [message #68870 is a reply to message #68813] Wed, 25 October 2006 07:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: juan.bernabo.igphone.com

Just to show were I stopped... the link on that message is broken now:

Hi Andy,

please read here:
http://www.eclipse.org/newsportal/article.php?id=619&gro up=eclipse.modeling.gmf#619

Martin


"Juan" <juan.bernabo@igphone.com> wrote in message
news:ehmsd0$ud9$1@utils.eclipse.org...
> Hi,
>
> I was unable to locate the old articles that talk about this, they are
> unreachable, so I'm posting this again.
>
> Thanks in advance
> Juan.
>
Re: How to have multi line labels [message #68974 is a reply to message #68870] Wed, 25 October 2006 10:31 Go to previous message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

Juan wrote:

> Just to show were I stopped... the link on that message is broken now:
>
> Hi Andy,
>
> please read here:
>
http://www.eclipse.org/newsportal/article.php?id=619&gro up=eclipse.modeling.gmf#619
>
> Martin
>
>
> "Juan" <juan.bernabo@igphone.com> wrote in message
> news:ehmsd0$ud9$1@utils.eclipse.org...
>> Hi,
>>
>> I was unable to locate the old articles that talk about this, they are
>> unreachable, so I'm posting this again.
>>
>> Thanks in advance
>> Juan.
>>

I found two possibilities:
1.: Just setting the Label to textwrap (e.g. "fig_0.setTextWrap(true)") in
the code. Do not forget to remove the @generated tag. But there seem to be
some problems with direct editing (you have to hover the mouse over the
label while editing, which can be very annoying)
2.: Use stack layout. Then the label is placed in the center (vertically,
too) and text wrap is enabled, but don't use this, is the same figure is
used as a compartment, too. Otherwise all the child figures and labels will
be stacked.

Personally, I think the best way (for figures with compartments) is to put
the label in an invisible sub-figure with layout set to stacklayout.

tobias
Previous Topic:How to modify EMF elements from a GMF PropertySection..
Next Topic:What controls the layout within a compartment???
Goto Forum:
  


Current Time: Sun Dec 22 06:30:43 GMT 2024

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

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

Back to the top