Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » node disapperas
node disapperas [message #198396] Tue, 22 July 2008 14:56 Go to next message
Gary is currently offline GaryFriend
Messages: 125
Registered: July 2009
Senior Member
Hi,
...For some reason after adding 2 nodes on a diagram, then creating a link
with one of my connection tools the node im linking to disappears!

Does anyone know why this could be happening?

Thanks in advance,
Gary
Re: node disapperas [message #198419 is a reply to message #198396] Tue, 22 July 2008 15:55 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Gary,

Looks like this node will be removed by CanonicalEditPolicy generated for
the diagram. You can try debugging this class to see the reason.

-----------------
Alex Shatalin
Re: node disapperas (use shadow nodes?) [message #198464 is a reply to message #198396] Tue, 22 July 2008 21:38 Go to previous message
Eclipse UserFriend
Originally posted by: goetz.botterweck.lero.ie

Gary wrote:
> ..For some reason after adding 2 nodes on a diagram, then creating a
> link with one of my connection tools the node im linking to disappears!
>
> Does anyone know why this could be happening?

Hi Gary,

does the link that you are drawing correspond to a containment in your
meta-model?

If yes, that might be the cause for the observed effect. After you
finish drawing that link, in the underlying model the targeted node is
*contained* somewhere else, so it is no longer contained in the object
that corresponds to the Canvas. Hence, it is no longer shown.

If you don't want that hehaviour, you might want to use a technique
called "shadow nodes". You'll find it in this newsgroup or have a look here
http://wiki.eclipse.org/index.php/GMF_MapModel_Hints
See "Show children elements from non-containment feature"

Hope that helps,
Goetz
Previous Topic:Outline TreeView
Next Topic:No Errors in Problems View after Validation
Goto Forum:
  


Current Time: Mon May 25 06:09:57 GMT 2020

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

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

Back to the top