org.eclipse.jpt.utility.model.listener
Class CommandChangeListener

java.lang.Object
  extended by org.eclipse.jpt.utility.model.listener.SimpleChangeListener
      extended by org.eclipse.jpt.utility.model.listener.CommandChangeListener
All Implemented Interfaces:
java.util.EventListener, ChangeListener, CollectionChangeListener, ListChangeListener, PropertyChangeListener, StateChangeListener, TreeChangeListener

public class CommandChangeListener
extends SimpleChangeListener

Convenience implementation of ChangeListener. All change notifications are funneled through a single command.

Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
CommandChangeListener(Command command)
          Construct a change listener that executes the specified command whenever it receives any change notification from the model to which it is added as a listener.
 
Method Summary
 
Methods inherited from class org.eclipse.jpt.utility.model.listener.SimpleChangeListener
collectionChanged, collectionCleared, itemsAdded, itemsAdded, itemsMoved, itemsRemoved, itemsRemoved, itemsReplaced, listChanged, listCleared, nodeAdded, nodeRemoved, propertyChanged, stateChanged, treeChanged, treeCleared
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandChangeListener

public CommandChangeListener(Command command)
Construct a change listener that executes the specified command whenever it receives any change notification from the model to which it is added as a listener.