Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartments
Compartments [message #202248] Mon, 18 August 2008 14:02 Go to next message
Eclipse UserFriend
Originally posted by: daylmer.opencloud.com

Hello,

I've read the GMF tutorial part 2 on Compartments but am a little confused.
I have Object A represented by a rounded rectangle which has a list of
Object Bs. I want to display this in a rectangle labeled "Object B" with
each member of the list as a label in the rectangle. Do I only need one
compartment for this?

David Aylmer
Re: Compartments [message #202303 is a reply to message #202248] Mon, 18 August 2008 23:43 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Yes you need 1 compartment for this - the compartment will contain your
list items.
The view structure will be:
NodeA (Rounded Rectangle View)
-NodeB (Compartment View)
- NodeC (for list items are optional. Don't need the if you use
SemanticListCompartmentEditPart for the parent node)

In terms of editparts:
ShapeNodeEditPart
-ListCompartmentEditPart (or even SemanticListCompartmentEditPart
- ListItemEditPart (or TextCompartmentEditPart) for

Follow the code in the generated ECore diagram editor example.

Cheers,
Alex
Re: Compartments [message #202363 is a reply to message #202303] Tue, 19 August 2008 08:32 Go to previous message
Eclipse UserFriend
Originally posted by: daylmer.opencloud.com

> Follow the code in the generated ECore diagram editor example.

Where can I find this example because I don't think it is installed and I
can't find it in the install wizard of eclipse?

Thank you

David Aylmer
Previous Topic:How can I handle the drag, using arrow keys?
Next Topic:collapsible compartments.. again..
Goto Forum:
  


Current Time: Thu Apr 25 08:55:09 GMT 2024

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

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

Back to the top