classpathhelper.util
Interface ITreeStructureChangeListener

All Known Implementing Classes:
ClassPathHelperViewPart, LocationsViewPart, PackagesViewPart, PackagesViewPart

public interface ITreeStructureChangeListener

Listener for a Node Structure Change Event. Structure Changes refer to changes to the shape of the tree (nodes added or removed).

Since:
1.0
Author:
bharris

Method Summary
 void treeChildAdded(ITreeRoot treeRoot, ITree parent, java.lang.String[] properties, ITree[] children)
          Callback indicating that children where added to a node.
 void treeChildRemoved(ITreeRoot treeRoot, ITree parent, java.lang.String[] properties, ITree[] children)
          Callback indicating that children where removed from the node.
 

Method Detail

treeChildAdded

public void treeChildAdded(ITreeRoot treeRoot,
                           ITree parent,
                           java.lang.String[] properties,
                           ITree[] children)
Callback indicating that children where added to a node.

Parameters:
treeRoot - The root of the tree where the event originated.
parent - The node where children where added.
properties - The properties of the parent that have changed with the adding of children or null if no properties were affected.
children - The children nodes that have been added.
Since:
1.1

treeChildRemoved

public void treeChildRemoved(ITreeRoot treeRoot,
                             ITree parent,
                             java.lang.String[] properties,
                             ITree[] children)
Callback indicating that children where removed from the node.

Parameters:
treeRoot - The root of the tree where the event originated.
parent - The node where children where removed.
properties - The properties of the parent that have changed with the removal of children or null if no properties were affected.
children - The children nodes that have been removed.
Since:
1.1