Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Difference between Children Feature and Containment Feature?
Difference between Children Feature and Containment Feature? [message #657328] Wed, 02 March 2011 13:19 Go to next message
akoeck is currently offline akoeckFriend
Messages: 62
Registered: December 2010
What is the difference between children feature and containment feature.

For example in a comartment. In the Child Reference I have Children Feature and Containment Feature. Which do I have tu use and why?

[Updated on: Wed, 02 March 2011 13:19]

Report message to a moderator

Re: Difference between Children Feature and Containment Feature? [message #657657 is a reply to message #657328] Thu, 03 March 2011 15:32 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member

The answer is covered in the "Mapping Definition" section of the GMF Tutorial 2 which states:


Note : If you're wondering about the difference between 'Children Feature' and 'Containment Feature' the idea is this (as described in the newsgroup): the 'Containment Feature' refers to where children are stored, while the 'Children Feature' refers to where to take them from. These are usually the same, and there is no need to set Children Feature if Containment Feature is set as it will default to this value. An example of when you'd need to specify this property is with EClass and EAttribute where eStructuralFeatures is the 'containment' for both operations and attributes, but where eAttributes is 'children' for instances of EAttribute.

Previous Topic:the shape of the arrow
Next Topic:The code of method getNodeVisualID(View, EObject) is exceeding the 65535 bytes limit
Goto Forum:

Current Time: Tue Mar 09 08:31:16 GMT 2021

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

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

Back to the top