| [news.eclipse.modeling.gmf] Re: Shortcut for 1:1:n containment reference chains in NodeMapping/ChildReference |
Hello Christian,
This is a right solution for now with only addition â this reference should not be containment and GMF should allow you to specify non-containment reference as containment one in ChildReference (you should be able to igronre warning on map->gen transformation and generate code then).model so that i can ask A for instances of C. (containment, derived, transient references from A->C) - Remember: A->B is 1:1 containment
Might it eventually be possible to extend GMF to support this? If so,I think, generic support of this situation is rather complex, so I doubt support this kind of âcomplex diagram structure modellingâ will be implemented in GMF in near future. As you correctly found there is a workaround for this problem â you can use EMFâs derived features + java to implement all the logic there so for GMF this will be still a parent domain model element (indirectly) containing child one.. Nevertheless for now you can try modifying GMF templates (using custom templates for this diagram editor generation) to handle this situation at least to some extend. Once youâll find a solution you can simply raise a bugzilla request with appropriate patch attached to contribute this functionality into the project.
----------------- Alex Shatalin