org.eclipse.jpt.utility.model.listener
Interface TreeChangeListener

All Superinterfaces:
ChangeListener, java.util.EventListener
All Known Implementing Classes:
TreeChangeAdapter

public interface TreeChangeListener
extends ChangeListener

A "tree change" event gets fired whenever a model changes a "bound" tree. You can register a TreeChangeListener with a source model so as to be notified of any bound tree updates. Provisional API: This interface 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.


Method Summary
 void nodeAdded(TreeChangeEvent event)
          This method gets called when a node is added to a bound tree.
 void nodeRemoved(TreeChangeEvent event)
          This method gets called when a node is removed from a bound tree.
 void treeChanged(TreeChangeEvent event)
          This method gets called when a portion of a bound tree is changed in a manner that is not easily characterized by the other methods in this interface.
 void treeCleared(TreeChangeEvent event)
          This method gets called when a bound tree is cleared.
 

Method Detail

nodeAdded

void nodeAdded(TreeChangeEvent event)
This method gets called when a node is added to a bound tree.

Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the node that was added.

nodeRemoved

void nodeRemoved(TreeChangeEvent event)
This method gets called when a node is removed from a bound tree.

Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the node that was removed.

treeCleared

void treeCleared(TreeChangeEvent event)
This method gets called when a bound tree is cleared.

Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and an empty path.

treeChanged

void treeChanged(TreeChangeEvent event)
This method gets called when a portion of a bound tree is changed in a manner that is not easily characterized by the other methods in this interface.

Parameters:
event - A TreeChangeEvent describing the event source, the tree that changed, and the path to the branch of the tree that changed.