org.eclipse.xtext.resource
Interface IResourceDescription.Event.Source

All Known Subinterfaces:
IBuilderState, IDirtyStateManager, IStateChangeEventBroker
All Known Implementing Classes:
AbstractBuilderState, AbstractResourceDescriptionChangeEventSource, ClusteringBuilderState, DelegatingEventSource, DirtyStateAwareResourceDescriptions, DirtyStateManager, StateChangeEventBroker, TypeResourceUnloader
Enclosing interface:
IResourceDescription.Event

public static interface IResourceDescription.Event.Source


Method Summary
 void addListener(IResourceDescription.Event.Listener listener)
          Add a listener to the event source.
 void removeListener(IResourceDescription.Event.Listener listener)
          Immediately removes a registered listener from the source.
 

Method Detail

addListener

void addListener(IResourceDescription.Event.Listener listener)
Add a listener to the event source. Listeners will not be added twice. Subsequent calls to #addListener(Listener) will not affect the number of events that the listener receives. #removeListener(Listener) will remove the listener immediately independently from the number of invocations of #addListener(Listener) for the given listener.

Parameters:
listener - the listener to be registered. May not be null.

removeListener

void removeListener(IResourceDescription.Event.Listener listener)
Immediately removes a registered listener from the source. However if #removeListener(Listener) is called during a notification, the removed listener will still receive the event. If the listener has not been registered before, the #removeListener(Listener) does nothing.

Parameters:
listener - the listener to be removed. May not be null.