Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [SOLVED] Connections make nodes disappear
[SOLVED] Connections make nodes disappear [message #1763883] Mon, 22 May 2017 14:05
Marco Latona is currently offline Marco LatonaFriend
Messages: 1
Registered: May 2017
Junior Member
Hi all,

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?

Many thanks.

SOLUTION:

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

Previous Topic:GMF, Graphiti or just GEF for a "Form Designer" tool ?
Next Topic:GMF tooling disappeared from Oxygen
Goto Forum:
  


Current Time: Thu Oct 19 01:56:43 GMT 2017

Powered by FUDForum. Page generated in 0.02305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software