Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Content of Compartments
Content of Compartments [message #161683] Tue, 20 November 2007 16:32 Go to next message
adotor is currently offline adotorFriend
Messages: 46
Registered: July 2009
Member
Hello,

I have a problem concerning the content of compartments. I have a class
A which is mapped onto the diagram element. I have class B and C which
are contained within A and I have a reference (nut no containment) from
class C to B (and back).

Is it possible to have a compartment on the node for B to display the
referenced element of type C? Or is a compartment-content type required
to be within a container-containment relationship?

Cheers,
Alexander Dotor
Re: Content of Compartments [message #161813 is a reply to message #161683] Wed, 21 November 2007 13:16 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Alexander,

> referenced element of type C? Or is a compartment-content type
> required to be within a container-containment relationship?
You are right - generated code will traverse compartment container element
to get contents of the compartment. You can modify this behavior by changing
code/templetes.

-----------------
Alex Shatalin
Previous Topic:Own special Grid
Next Topic:GMF Problem -> Once one node added, none other can be
Goto Forum:
  


Current Time: Fri May 10 17:15:16 GMT 2024

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

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

Back to the top