Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connecting two nodes makes them disappear
Connecting two nodes makes them disappear [message #162920] Tue, 27 November 2007 14:18 Go to next message
Eclipse UserFriend
Originally posted by: marcio.debarros.gmail.com

Hi,

In my diagram I need to implement a connection between two existing
nodes (both of the same class/type). It should be similar to what the
Mindmap tutorial does for Relationship between Topics. Like suggested in
the tutorial, I created containment class that has source and target
elements that matches the types of the nodes in the diagram canvas.

However, whenever I click on the end node of my connection, both nodes
gets deleted from the model. I can't find any error message, warning, or
exception being thrown in the log file. Also I tried to put a break
point in the CreateCommand class/method for the connection, but can
never get to the point where any destroy method is called, since every
time I move over the diagram, that method is invoked and the processing
breaks.

Any suggestions, ideas on what/where to looking for this ?

Thanks,

--MD.
Re: Connecting two nodes makes them disappear [message #162929 is a reply to message #162920] Tue, 27 November 2007 15:14 Go to previous message
Eclipse UserFriend
Originally posted by: marcio.debarros.gmail.com

Marcio DeBarros wrote:
> Hi,
>
> In my diagram I need to implement a connection between two existing
> nodes (both of the same class/type). It should be similar to what the
> Mindmap tutorial does for Relationship between Topics. Like suggested in
> the tutorial, I created containment class that has source and target
> elements that matches the types of the nodes in the diagram canvas.
>
> However, whenever I click on the end node of my connection, both nodes
> gets deleted from the model. I can't find any error message, warning, or
> exception being thrown in the log file. Also I tried to put a break
> point in the CreateCommand class/method for the connection, but can
> never get to the point where any destroy method is called, since every
> time I move over the diagram, that method is invoked and the processing
> breaks.
>
> Any suggestions, ideas on what/where to looking for this ?
>
> Thanks,
>
> --MD.
An update to this... it seems that the Nodes are not deleted by they
become invisible. If I drag a connection from an existing node and drop
it in an empty area, I get a pop-up asking if I want to link to a new
node or to an existing one (which in this case, the ones I have created
before are shown)... and then after I make the selection everything
disappears.
Previous Topic:Adding child not supported by GMF
Next Topic:Multiple metamodels not supported?
Goto Forum:
  


Current Time: Sun Jul 27 13:48:51 EDT 2025

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

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

Back to the top