Dali Provisional API
Release 3.2

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

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

public class CommandChangeListener
extends AbstractChangeListener

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.


Field Summary
protected  Command command
           
 
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
protected  void modelChanged()
          The model has notified the listener of a change.
 
Methods inherited from class org.eclipse.jpt.common.utility.model.listener.AbstractChangeListener
collectionChanged, collectionCleared, itemsAdded, itemsAdded, itemsMoved, itemsRemoved, itemsRemoved, itemsReplaced, listChanged, listCleared, modelChanged, propertyChanged, stateChanged, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

protected final Command command
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.

Method Detail

modelChanged

protected void modelChanged()
Description copied from class: AbstractChangeListener
The model has notified the listener of a change. By default the listener throws an exception.

Overrides:
modelChanged in class AbstractChangeListener

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.