Ralph Gerbig Messages: 555 Registered: November 2009
Senior Member
Hi,
I have two nodes (A and B) A is having a reference to B. This reference is set containment true. I only know how to display B inside A, but not how to make the containmen visible by drawing a line. Here is a Example:
Romain Bioteau Messages: 59 Registered: August 2009 Location: Grenoble
Member
Hello Raplh,
I think there is a semantic issue in what you are trying to achieve. The ecore containment can't be map directly with your "domain" containment.
You should create a ContainmentConnection object in your domain to represent your containment relationship and map it to Connection figure.
Ralph Gerbig Messages: 555 Registered: November 2009
Senior Member
Hi Romain,
adding an extra meta model element is what I wanted to get around. Is there no way to do this by children/containment feature? I could not find a good description of those two. I have also seen, that there is a way to affix containments outside of a container but could not find any documentation, too.
Ralph Gerbig Messages: 555 Registered: November 2009
Senior Member
Hi,
I have seen this tutorial: http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-affi xed-nodes/ . I do not know how to do this with GMF. Would it be possible to have this with a line between the outer element and the container? Maybo border items would solve my problem. My use case would be something like having a UML Class and displaying the methods and fields outside of the class. I think border items would be great as they are deleted together with the containing node. How could I realize such a thing?