org.eclipse.jpt.common.utility.model.listener
Class CommandChangeListener
java.lang.Object
org.eclipse.jpt.common.utility.model.listener.AbstractChangeListener
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.
|
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 |
command
protected final Command command
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.
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
Copyright (c) 2012 Oracle. All rights reserved.