Create GMF tooling to instantiate an object via a non-containment relationship [message #834791] |
Mon, 02 April 2012 12:00 |
Elvis Dowson Messages: 65 Registered: December 2011 |
Member |
|
|
Hi,
In the attached MindMap EMF meta-model diagram, the Resource class is contained by the Map class. The Thread class is contained by the Topic class.
I want to be able to create a GMF generated graphical editor, with a link tool for creating a new Thread, by clicking on a comments link tool, from a palette, clicking on the Resource and dragging it down, and be presented with an option to create a new Thread object.
The comments relationship is not a containment relationship, so how should I set up my link mapping to be able to get the comments link tool to correctly create the Thread object, which gets contained by an existing Topic object, and the comments link is set to the newly created Thread?
Best regards,
Elvis Dowson
|
|
|
|
Powered by
FUDForum. Page generated in 0.02817 seconds