public class DeferringNotifier extends AdapterCapsule
Modifier and Type | Field and Description |
---|---|
protected java.util.HashSet<org.eclipse.emf.common.notify.Notification> |
deferredEvents
contains the queued events by each connection that has an open command.
|
_listener, _listenerType, _manager
Constructor and Description |
---|
DeferringNotifier(java.lang.ref.WeakReference<? extends org.eclipse.emf.common.notify.Adapter> _listenerRef,
ListenerTypeEnum _listenerType,
EventManager _manager) |
Modifier and Type | Method and Description |
---|---|
void |
cancelDeferment()
This method is defined here because of convenience reasons.
|
void |
deferNotification()
This method is defined here because of convenience reasons.
|
void |
deliverDeferredEvents()
This method is defined here because of convenience reasons.
|
void |
fireEvent(org.eclipse.emf.common.notify.Notification event)
notifies the encapsulated listener about the passed event
|
getListener, getListenerType, isResponsibleFor, toString
protected java.util.HashSet<org.eclipse.emf.common.notify.Notification> deferredEvents
EventChain
in order to simplify the notification of multiple events and to improve performance.public DeferringNotifier(java.lang.ref.WeakReference<? extends org.eclipse.emf.common.notify.Adapter> _listenerRef, ListenerTypeEnum _listenerType, EventManager _manager)
public void deferNotification()
AdapterCapsule
deferNotification
in class AdapterCapsule
public void deliverDeferredEvents()
AdapterCapsule
deliverDeferredEvents
in class AdapterCapsule
public void cancelDeferment()
AdapterCapsule
cancelDeferment
in class AdapterCapsule
public void fireEvent(org.eclipse.emf.common.notify.Notification event)
AdapterCapsule
fireEvent
in class AdapterCapsule
event
- the event that will be sent to the listener