Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » node disapperas
node disapperas [message #198396] Tue, 22 July 2008 10:56 Go to next message
Eclipse UserFriend
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 11:55 Go to previous messageGo to next message
Eclipse UserFriend
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 17: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 Jul 07 08:23:49 EDT 2025

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

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

Back to the top