|[SOLVED] Connections make nodes disappear [message #1763883]
||Mon, 22 May 2017 14:05
| Marco Latona
Registered: May 2017
I'm trying to build a simple diagram with GMF where I want to map a link to an EClass.
The two nodes to be connected are mapped to the extensions of the class "Parameter" (we can call them ParamTypeA and ParamTypeB).
I want that the link connecting the two nodes is mapped to another EClass called "Event" that has two attributes of type "ParamTypeA" and "ParamTypeB" so I set the source and target feature of the link respectively to these two attributes.
Now when I try to add the link in the diagram between the two nodes, the nodes and the link just disappear!
If I save the file and if I open the diagram file with a text editor of course there's no trace of the two nodes and the link but if I open the text file containing the XMI associated to the diagram all the information is present!
How can that happen? Why I cannot render the diagram correctly?
The problem was related to the .ecore file.
Every EReference used as a "target feature" in the link mapping entry in the .gmfmap file needs to have the "Containment" feature set to false!
[Updated on: Tue, 23 May 2017 14:15]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01783 seconds