Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Deleting a node that has source and target connection
Deleting a node that has source and target connection [message #229168] Thu, 07 May 2009 12:23 Go to next message
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
Member
Hi,

I have a simple case in which I have several nodes in my diagram and
they can connect to each other without any constraint. Those connections
are defined in the mapping without model element.

I need to add some additional behavior to the fact of deleting a
connection. So I have 2 cases:

1 - Deleting the connection directly, so I reimplement the
ComponentEditPolicy of the connection EditPart

2 - Deleting a node that has, for example, target connections.. those
connections will be deleted as well. And in this scenario I don't find
where do I have to touch (in the code) to incercept that event and add
my behavior... does anyone know where? I guess it should be an EditPolicy...

Thanks
Re: Deleting a node that has source and target connection [message #229629 is a reply to message #229168] Tue, 12 May 2009 13:45 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Javier,

> 2 - Deleting a node that has, for example, target connections.. those
> connections will be deleted as well. And in this scenario I don't find
> where do I have to touch (in the code) to incercept that event and add
> my behavior... does anyone know where? I guess it should be an
> EditPolicy...
You can modify either XXXItemSemanticEditPolicy generated for link source/target
nodes or listen for the notifications from notation model (this should cover
even case 1.).

-----------------
Alex Shatalin
Previous Topic:Hello CopyToImageUtil!
Next Topic:Editor doesnt become dirty on custom changes
Goto Forum:
  


Current Time: Fri Nov 24 02:02:22 GMT 2017

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

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