|
|
|
|
Re: TopNodeReference Creation [message #1039099 is a reply to message #1037873] |
Thu, 11 April 2013 19:13 |
Thomas Beyer Messages: 55 Registered: February 2013 |
Member |
|
|
Hi Mostafa,
in your mappingmodel, your canvas mapping defines the domain element as the root of your diagram.
All Top-Level-NodeMapping's domain element must be set with a containment-feature of the domain root.
For example (in accordance with your file/folder concept)
-> SystemRoot
-----> 0..* folders: Folder
---------> 0..* subFolders: Folder
---------> 0..* folderFiles: File
-----> 0..* files: File
So in your gmf-mapping-model the SystemRoot would be the domain element of the canvas mapping.
Now you only have the 2 choices to create topnoderefences for Folder (only for the feature:folders) and File (only for the feature:files).
You would then be able to create nodemappings below Folder for the features subFolders and folderFiles.
So you need an explicit feature from your root to your topnodereferences on the domain model level.
In your example, this means, your canvas mapping must have Folder set as the domain element.
Can your verify this?
Regards
Thomas
[Updated on: Thu, 11 April 2013 19:15] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04103 seconds