Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » cotaintment reference
cotaintment reference [message #216376] Mon, 26 January 2009 12:16 Go to next message
Vincent Grimault is currently offline Vincent GrimaultFriend
Messages: 2
Registered: July 2009
Junior Member

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
Re: cotaintment reference [message #216418 is a reply to message #216376] Tue, 27 January 2009 02:02 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member

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.

Re: cotaintment reference [message #216924 is a reply to message #216418] Fri, 30 January 2009 14:22 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Thu Feb 25 09:10:12 GMT 2021

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

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

Back to the top