Class AbstractNotificationProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.changebroker.spi.AbstractNotificationProvider
-
- All Implemented Interfaces:
NotificationProvider
- Direct Known Subclasses:
ECPNotificationProvider
public abstract class AbstractNotificationProvider extends java.lang.Object implements NotificationProvider
Abstract implementation of aNotificationProvider
.- Author:
- jfaltermeier
-
-
Constructor Summary
Constructors Constructor Description AbstractNotificationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReceiver(NotificationReceiver receiver)
Adds a newNotificationReceiver
.protected void
notifyAllReceivers(org.eclipse.emf.common.notify.Notification notification)
Notifies all registeredreceivers
.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 aNotificationReceiver
.
-
-
-
Method Detail
-
addReceiver
public void addReceiver(NotificationReceiver receiver)
Adds a newNotificationReceiver
. Does nothing of receiver is already registered,- Specified by:
addReceiver
in interfaceNotificationProvider
- Parameters:
receiver
- the receiver to add- See Also:
NotificationProvider.addReceiver(org.eclipse.emf.ecp.changebroker.spi.NotificationReceiver)
-
removeReceiver
public void removeReceiver(NotificationReceiver receiver)
Removes aNotificationReceiver
. Does nothing if the receiver was never registered.- Specified by:
removeReceiver
in interfaceNotificationProvider
- Parameters:
receiver
- the receiver- See Also:
NotificationProvider.removeReceiver(org.eclipse.emf.ecp.changebroker.spi.NotificationReceiver)
-
notifyAllReceivers
protected void notifyAllReceivers(org.eclipse.emf.common.notify.Notification notification)
Notifies all registeredreceivers
.- Parameters:
notification
- the notification
-
notifyPreDelete
protected void notifyPreDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
- Parameters:
toBeDeleted
- The deletedEObject
- Since:
- 1.7
-
notifyPostDelete
protected void notifyPostDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
- Parameters:
toBeDeleted
- The deletedEObject
- Since:
- 1.7
-
notifyCanDelete
protected boolean notifyCanDelete(org.eclipse.emf.ecore.EObject toBeDeleted)
- Parameters:
toBeDeleted
- The deletedEObject
- Returns:
- if the object can be deleted
- Since:
- 1.7
-
-