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 NotificationProvider
receiver
- 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 NotificationProvider
receiver
- 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 EObject
protected void notifyPostDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
toBeDeleted
- The deleted EObject
protected boolean notifyCanDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
toBeDeleted
- The deleted EObject
Copyright © 2019. All rights reserved.