|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.core.listener.NotificationUtil
Utility class that implements few helper methods around the EMF
Notification object
| Constructor Summary | |
NotificationUtil()
|
|
| Method Summary | |
static java.util.Set |
getDeletedObjects(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
Collect the deleted objects from all the notifications in the event. |
static boolean |
isCustomNotification(Notification notification)
checks if the Notification is a custom notification or not |
static boolean |
isElementAddedToSlot(Notification notification)
checks if the event resulted in adding an element |
static boolean |
isElementRemovedFromSlot(Notification notification)
checks if the event resulted in removing an element |
static boolean |
isMove(Notification notification)
checks if the event is an Notification.MOVE event. |
static boolean |
isSlotModified(Notification notification)
checks if the event resulted in a slot modification (set/unset event) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NotificationUtil()
| Method Detail |
public static boolean isSlotModified(Notification notification)
Notification.SET or Notification.UNSET;
otherwise false.public static boolean isElementAddedToSlot(Notification notification)
Notification.ADD or Notification.ADD_MANY;
otherwise false.public static boolean isElementRemovedFromSlot(Notification notification)
Notification.REMOVE or Notification.REMOVE_MANY;
otherwise false.public static boolean isMove(Notification notification)
Notification.MOVE event.
Notification.MOVE; otherwise false.public static boolean isCustomNotification(Notification notification)
public static java.util.Set getDeletedObjects(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
event -
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.