Skip to main content



      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 08:19 Go to next message
Eclipse UserFriend
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 08:19] by Moderator

Re: Difference between Children Feature and Containment Feature? [message #657657 is a reply to message #657328] Thu, 03 March 2011 10:32 Go to previous message
Eclipse UserFriend
Hello,

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

Quote:

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.



Regards,
Michael
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: Fri Jul 04 17:02:23 EDT 2025

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

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

Back to the top