| [GMF] Containment Bug [message #759722] |
Tue, 29 November 2011 13:39  |
Patricia Espada Messages: 47 Registered: November 2011 |
Member |
|
|
Hello
I have a GMF/EMF project that is working just fine, with exception of one layout aspect. I have a containment element that accept a kind of nodes, and when a pick one of that nodes and put inside that containment in the containment appears two nodes. But theres only one there.
Probably these doesn't make sense without an example.
I've uploaded three images, the first one is my project without the containment. In the second image a add the containment, and in the third image I put the node inside the containment (and it duplicate the node).
Does anyone know what is causing this?
Another problem I'm having, is in the gmftool I define the nodes description, and it doesn't appear in project new instance.
|
|
|
|
|
|
|
| Re: [GMF] Containment Bug [message #759830 is a reply to message #759776] |
Wed, 30 November 2011 04:04   |
Thomas Buchmann Messages: 51 Registered: November 2010 |
Member |
|
|
Hi Patricia,
i'm having the same problems. Imho this is a Bug in GMF. I created a sample project to demonstrate the problem.
The domain model is a simplified version of UML2 Package Diagrams as shown in the figure below

The diagram canvas is mapped to "Model", nodes representing packages and classifiers are mapped to the respective domain model elements.
The bug can be reproduced as follows: Create a new package diagram. Insert a package and a class as top level nodes. Save the diagram. Then drag and drop the class into the package. The resulting domain model is correct. Unfortunately the notational model contains two nodes referencing the same domain model element.
Is there something wrong with my gmfmap file? Or is this really a bug in GMF itself?
EDIT: Is it related to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=237059 ?
[Updated on: Wed, 30 November 2011 05:05] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02519 seconds