|
|
|
Re: Name of deleted Node [message #1059235 is a reply to message #1059081] |
Fri, 17 May 2013 12:43 |
|
/**
* @generated
*/
protected void handleNotificationEvent(Notification notification) {
super.handleNotificationEvent(notification);
if (notification.getEventType() == Notification.SET) {
NodeImpl node = (NodeImpl) this.getModel();
if (node.getElement() instanceof xxxYourDeletedFigureXXX) {
xxxYourDeletedFigureXXX bdtState = (xxxYourDeletedFigureXXX) node
.getElement();
if (notification.getNotifier() instanceof xxxYourDeletedFigureImplXXX) {
xxxYourDeletedFigureImplXXX stateNofitier = (xxxYourDeletedFigureImplXXX) notification
.getNotifier();
...............
So in the bdtState you have your element that received the event . If it was derived from a class that had name as EAttribute, then you can access its name through getName() method.
Hope this helps.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03626 seconds