Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » About the mapping model. In a trouble.
About the mapping model. In a trouble. [message #161686] Tue, 20 November 2007 18:20 Go to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi Everyone:
I am a novice in GMF. I follow the tutorial about the mindmap. But
I cannot understand mapping model. Does anyone have a clear and simple
explanation about the mapping model? Especially, I am really confused
by the following elements in the mapping model:
1) What is top node reference? Which should they corresponds to in
the domain model.
2) What is containment feature? How is it related to domain model?
3) What is child feature?

If anyone could give me some idea of above, I am very grateful!
Best regards.
Michael.
Re: About the mapping model. In a trouble. [message #161689 is a reply to message #161686] Wed, 21 November 2007 08:44 Go to previous message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

hello,

A top node reference represents a top level class in your domain model,
like a package or a Class in an uml class diagram, and all packageElement.

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.

best,

Ali

Michael a écrit :
> Hi Everyone:
> I am a novice in GMF. I follow the tutorial about the mindmap. But
> I cannot understand mapping model. Does anyone have a clear and simple
> explanation about the mapping model? Especially, I am really confused
> by the following elements in the mapping model:
> 1) What is top node reference? Which should they corresponds to in
> the domain model.
> 2) What is containment feature? How is it related to domain model?
> 3) What is child feature?
>
> If anyone could give me some idea of above, I am very grateful!
> Best regards.
> Michael.
Previous Topic:Populating the model with additional info without affecting the model file
Next Topic:Palette group custom images
Goto Forum:
  


Current Time: Fri Apr 26 07:45:23 GMT 2024

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

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

Back to the top