Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to put two labels on the same line in a rectangle ?
How to put two labels on the same line in a rectangle ? [message #235720] Thu, 09 July 2009 05:54 Go to next message
Eclipse UserFriend
Hello all! (its my first post :p)

I have one rectangle containing different attributes and i have to put in
each line the type of the attribute and the value of the attribute. I have
tried several things but no one is working :-(

Thanks a lot for the answers ;)
Re: How to put two labels on the same line in a rectangle ? [message #235742 is a reply to message #235720] Thu, 09 July 2009 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Hello Geoffroy,

If type is just string property of this attribute then you can use labelmapping
with message format for it.

-----------------
Alex Shatalin
Re: How to put two labels on the same line in a rectangle ? [message #235781 is a reply to message #235742] Thu, 09 July 2009 08:37 Go to previous messageGo to next message
Eclipse UserFriend
yes ok i think i didn't have correctly writed my problem.

I have a figure descriptor containing a rectangle
In this rectangle I have to put 2 labels but these two labels have to be
in the same line. Currently when i put these two labels they are just one
bellow the other in the rectangle in two different line...
Re: How to put two labels on the same line in a rectangle ? [message #235855 is a reply to message #235781] Thu, 09 July 2009 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Geoffroy Cruxifix a écrit :
> yes ok i think i didn't have correctly writed my problem.
>
> I have a figure descriptor containing a rectangle
> In this rectangle I have to put 2 labels but these two labels have to be
> in the same line. Currently when i put these two labels they are just
> one bellow the other in the rectangle in two different line...
>

Hi Geoffroy,

In your gmfgrah you must have only one Diagram Label (one Diagram Label
to one line) and in your gmfgraph your create a Feature Label Mapping
mapping your previous Diagram Label to all your EAttribute features by
using View, Edit and Editor Pattern.
Re: How to put two labels on the same line in a rectangle ? [message #235881 is a reply to message #235781] Thu, 09 July 2009 14:23 Go to previous message
Eclipse UserFriend
Hello Geoffroy,

Try setting layout (FlowLayout, isVertical == false) for the rectangle figure
containing both labels.

-----------------
Alex Shatalin
Previous Topic:"Invalid view - remove from diagram" on diagrams created with older GMF opened in latest G
Next Topic:Diagram Runtime Class must be a notation::Diagram or sub-class
Goto Forum:
  


Current Time: Sat Jul 12 15:16:43 EDT 2025

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

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

Back to the top