|Add Element to parent, when an Element is added to child [message #1737355]
||Thu, 07 July 2016 14:12
| Niklas Klipphahn
Registered: July 2016
my Diagram is similar to a UML Component Diagram.
I have a Container Class A which can contain multiple instances of a Container Class B. Both of these Container classes can contain Elements, which are similar to Ports.
In my model it only makes sense if Container A has the same 'ports' as all the contained Bs.
Right now the user has to do this manually.
Is there a way (I guess by changing code) to automatically add the same or a copy of an Element to A if one is added to B?
Sorry, but I'm new to GMF and the code is confusing and complex to me.
Thanks in advance.
Powered by FUDForum
. Page generated in 0.01659 seconds