org.eclipse.xtext.ui.notification
Class StateChangeEventBroker

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
      extended by org.eclipse.xtext.ui.notification.StateChangeEventBroker
All Implemented Interfaces:
IResourceDescription.Event.Listener, IResourceDescription.Event.Source, IStateChangeEventBroker

public class StateChangeEventBroker
extends AbstractResourceDescriptionChangeEventSource
implements IStateChangeEventBroker

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
static class StateChangeEventBroker.StateChangeEventBrokerEvent
           
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.notification.IStateChangeEventBroker
IStateChangeEventBroker.Event
 
Constructor Summary
StateChangeEventBroker()
           
 
Method Summary
 void descriptionsChanged(IResourceDescription.Event event)
           The source will invoce this method to announce changed resource.
 
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
addListener, addListeners, notifyListeners, removeListener, removeListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.resource.IResourceDescription.Event.Source
addListener, removeListener
 

Constructor Detail

StateChangeEventBroker

public StateChangeEventBroker()
Method Detail

descriptionsChanged

public void descriptionsChanged(IResourceDescription.Event event)
Description copied from interface: IResourceDescription.Event.Listener

The source will invoce this method to announce changed resource. The event will never be null. However, it may contain an empty list of deltas.

Listeners are free to remove themselves from the sender of the event or add other listeners. However added listeners will not be informed about the current change.

This event may be fired asynchronously. It is ensured that the changed resources will provide the content as it was when the change has been announced to the sender of the event.

Specified by:
descriptionsChanged in interface IResourceDescription.Event.Listener
Parameters:
event - the fired event. Will never be null.