|
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
public class NotificationUtil
Utility class that implements few helper methods around the EMF
Notification object
| Constructor Summary | |
|---|---|
NotificationUtil()
|
|
| Method Summary | |
|---|---|
static java.util.Set |
getAddedObjects(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
Collect the added objects from all the notifications in the event. |
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(org.eclipse.emf.common.notify.Notification notification)
checks if the Notification is a custom notification or not |
static boolean |
isElementAddedToSlot(org.eclipse.emf.common.notify.Notification notification)
checks if the event resulted in adding an element |
static boolean |
isElementRemovedFromSlot(org.eclipse.emf.common.notify.Notification notification)
checks if the event resulted in removing an element |
static boolean |
isMove(org.eclipse.emf.common.notify.Notification notification)
checks if the event is an Notification.MOVE event. |
static boolean |
isSlotModified(org.eclipse.emf.common.notify.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(org.eclipse.emf.common.notify.Notification notification)
Notification.SET or Notification.UNSET;
otherwise false.public static boolean isElementAddedToSlot(org.eclipse.emf.common.notify.Notification notification)
Notification.ADD or Notification.ADD_MANY;
otherwise false.public static boolean isElementRemovedFromSlot(org.eclipse.emf.common.notify.Notification notification)
Notification.REMOVE or Notification.REMOVE_MANY;
otherwise false.public static boolean isMove(org.eclipse.emf.common.notify.Notification notification)
Notification.MOVE event.
Notification.MOVE; otherwise false.public static boolean isCustomNotification(org.eclipse.emf.common.notify.Notification notification)
public static java.util.Set getDeletedObjects(org.eclipse.emf.transaction.ResourceSetChangeEvent event)
event -
public static java.util.Set getAddedObjects(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.