Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » cotaintment reference
cotaintment reference [message #216376] Mon, 26 January 2009 07:16 Go to next message
Eclipse UserFriend
Hi,

In my model EMF, I have this:

A that contains a list of reference of object B (containment='false') and
C composed of a list of B(containment="true").


In my mapping, I try to add a "child reference" to my list of object B
but I can't because I can't define "containment feature" with "A.list:B".
I can only set "C.list:B".

can anyone help?
thanks in advance
Vincent
Re: cotaintment reference [message #216418 is a reply to message #216376] Mon, 26 January 2009 21:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I suppose this is a restrictions in GMF tooling that children can only be
defined by a containment reference.
However, you could tweak the generated code and override
#getModelChildren() method of editpart class of A and add there B
non-containment reference.

Cheers,
Alex
Re: cotaintment reference [message #216924 is a reply to message #216418] Fri, 30 January 2009 09:22 Go to previous message
Eclipse UserFriend
Hello Alex,

I propose in suce cases to set containment feature to "A.list:B", ingore
warnings, generate code and then modify generated CreateCommand.
-----------------
Alex Shatalin
Previous Topic:Child Reference Containment Feature
Next Topic:List attributes
Goto Forum:
  


Current Time: Sun Jul 06 16:59:52 EDT 2025

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

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

Back to the top