Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:54 Go to next message
Geoffroy Cruxifix is currently offline Geoffroy CruxifixFriend
Messages: 2
Registered: July 2009
Junior Member
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 10:54 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 12:37 Go to previous messageGo to next message
Geoffroy Cruxifix is currently offline Geoffroy CruxifixFriend
Messages: 2
Registered: July 2009
Junior Member
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 16:20 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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 18:23 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Sun Feb 28 14:07:38 GMT 2021

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

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

Back to the top