public static interface IResourceDescription.Event.Source
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IResourceDescription.Event.Listener listener)
Add a listener to the event source.
|
void |
notifyListeners(IResourceDescription.Event event)
Notify listeners about the given event.
|
void |
removeListener(IResourceDescription.Event.Listener listener)
Immediately removes a registered listener from the source.
|
void addListener(IResourceDescription.Event.Listener listener)
addListener(org.eclipse.xtext.resource.IResourceDescription.Event.Listener) will not affect the number of events that the listener receives.
removeListener(org.eclipse.xtext.resource.IResourceDescription.Event.Listener) will remove the listener immediately independently from the number of
invocations of addListener(org.eclipse.xtext.resource.IResourceDescription.Event.Listener) for the given listener.listener - the listener to be registered. May not be null.void removeListener(IResourceDescription.Event.Listener listener)
removeListener(org.eclipse.xtext.resource.IResourceDescription.Event.Listener)
is called during a notification, the removed listener will still receive the event. If the listener has
not been registered before, the removeListener(org.eclipse.xtext.resource.IResourceDescription.Event.Listener) does nothing.listener - the listener to be removed. May not be null.void notifyListeners(IResourceDescription.Event event)
Notify listeners about the given event.
event - the fired event. My not be null.