Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » List of vertical labels in a container
List of vertical labels in a container [message #742623] Thu, 20 October 2011 17:07 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi

Using the GMF Tooling... how can I define a container that contains a
list of feature mapped labels? I would like to achieve something that
looks like the attribute box of a UML Class diagram.

Thank you in advance.

-H
Re: List of vertical labels in a container [message #743167 is a reply to message #742623] Fri, 21 October 2011 07:28 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

all you need to have is a compartment where you place labels in and set its layout to list layout. Take a look at this wikipage to find out more about compartments: http://wiki.eclipse.org/GMF_Tutorial_Part_2

Ralph
Re: List of vertical labels in a container [message #743539 is a reply to message #743167] Fri, 21 October 2011 15:06 Go to previous messageGo to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
On 10/21/2011 09:28 AM, ralph. wrote:
> Hi,
>
> all you need to have is a compartment where you place labels in and set
> its layout to list layout. Take a look at this wikipage to find out more
> about compartments: http://wiki.eclipse.org/GMF_Tutorial_Part_2
>
> Ralph

I got that far but the feature labels are not editable unleess I put
them inside another Rectangle. Editing the feature labels added directly
to the container produces a null pointer exception.

When i add the label into the Rectangle and add this figure to the
Container then the layout is awful.

If anyone has a concrete example or has found one then I would
appreciate it.

-H
Re: List of vertical labels in a container [message #747644 is a reply to message #743539] Mon, 24 October 2011 07:42 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

maybe you can use the UML2Tools sourcecode as an example.

Ralph
Re: List of vertical labels in a container [message #747853 is a reply to message #747644] Mon, 24 October 2011 10:18 Go to previous message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
On 10/24/2011 09:42 AM, ralph. wrote:
> Hi,
>
> maybe you can use the UML2Tools sourcecode as an example.
>
> Ralph

Found the answer in the mindmap example. Took some time to fine the
proper cvs repository to find it since the links from the wiki and main
Eclipse site lead to the old repository url.

thanks

it works

-H
Previous Topic:Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml
Next Topic:[SOLVED] How to delete references and without deleting elements?
Goto Forum:
  


Current Time: Sat Dec 21 15:39:12 GMT 2024

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

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

Back to the top