connection update [message #514617] |
Tue, 16 February 2010 02:09 |
Ali Koudri 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03650 seconds