Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » connection update
connection update [message #514617] Tue, 16 February 2010 02:09
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Hi all,

I would like to update my diagrams when I delete a domain element mapped
to a connector edit part. Such feature is already supported for a node
in the generated code. In my XXXEditPart which extends
ConnectionNodeEditPart, I have overloaded the handleNotification method
this way:

protected void handleNotificationEvent(Notification notification) {
if (notification.getEventType() == Notification.REMOVE)
{
deactivate();
unregister();
setParent(null);
}
super.handleNotificationEvent(notification);
}

Which works as long as I don't close my editor. Because when a reopen my
model, the deleted connector reappears with model element set to null.
Any idea ? I haven't found anything on the www.

thx for your help.
Previous Topic:Opening a file in an GMF RCP application
Next Topic:GMF with ZEST , and Dynamic Palette ?
Goto Forum:
  


Current Time: Tue Sep 29 11:46:48 GMT 2020

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

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

Back to the top