public abstract class AbstractNotificationProvider extends Object implements NotificationProvider
NotificationProvider.| Constructor and Description |
|---|
AbstractNotificationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceiver(NotificationReceiver receiver)
Adds a new
NotificationReceiver. |
protected void |
notifyAllReceivers(org.eclipse.emf.common.notify.Notification notification)
Notifies all registered
receivers. |
protected boolean |
notifyCanDelete(org.eclipse.emf.ecore.EObject toBeDeleted) |
protected void |
notifyPostDelete(org.eclipse.emf.ecore.EObject toBeDeleted) |
protected void |
notifyPreDelete(org.eclipse.emf.ecore.EObject toBeDeleted) |
void |
removeReceiver(NotificationReceiver receiver)
Removes a
NotificationReceiver. |
public void addReceiver(NotificationReceiver receiver)
NotificationReceiver. Does nothing of receiver is already registered,addReceiver in interface NotificationProviderreceiver - the receiver to addNotificationProvider.addReceiver(org.eclipse.emf.ecp.changebroker.spi.NotificationReceiver)public void removeReceiver(NotificationReceiver receiver)
NotificationReceiver. Does nothing if the receiver was
never registered.removeReceiver in interface NotificationProviderreceiver - the receiverNotificationProvider.removeReceiver(org.eclipse.emf.ecp.changebroker.spi.NotificationReceiver)protected void notifyAllReceivers(org.eclipse.emf.common.notify.Notification notification)
receivers.notification - the notificationprotected void notifyPreDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
toBeDeleted - The deleted EObjectprotected void notifyPostDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
toBeDeleted - The deleted EObjectprotected boolean notifyCanDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
toBeDeleted - The deleted EObjectCopyright © 2020. All rights reserved.