org.eclipse.jpt.utility.model.event
Class TreeRemoveEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.jpt.utility.model.event.ChangeEvent
          extended by org.eclipse.jpt.utility.model.event.TreeEvent
              extended by org.eclipse.jpt.utility.model.event.TreeRemoveEvent
All Implemented Interfaces:
java.io.Serializable

public final class TreeRemoveEvent
extends TreeEvent

A "tree remove" event gets delivered whenever a model removes a node rom a "bound" or "constrained" tree. A TreeChangeEvent is sent as an argument to the TreeChangeListener.

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.

See Also:
Serialized Form

Constructor Summary
TreeRemoveEvent(Model source, java.lang.String treeName, java.util.List<?> path)
          Construct a new tree remove event.
 
Method Summary
 TreeRemoveEvent clone(Model newSource)
           
 TreeRemoveEvent clone(Model newSource, java.lang.String newTreeName)
          Return a copy of the event with the specified source and tree name replacing the current source and tree name.
 java.lang.Iterable<?> getPath()
          Return the path to the part of the tree that was removed.
 
Methods inherited from class org.eclipse.jpt.utility.model.event.TreeEvent
getTreeName
 
Methods inherited from class org.eclipse.jpt.utility.model.event.ChangeEvent
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeRemoveEvent

public TreeRemoveEvent(Model source,
                       java.lang.String treeName,
                       java.util.List<?> path)
Construct a new tree remove event.

Parameters:
source - The object on which the event initially occurred.
treeName - The programmatic name of the tree that was changed.
path - The path to the part of the tree that was removed.
Method Detail

getPath

public java.lang.Iterable<?> getPath()
Return the path to the part of the tree that was removed.


clone

public TreeRemoveEvent clone(Model newSource)

clone

public TreeRemoveEvent clone(Model newSource,
                             java.lang.String newTreeName)
Return a copy of the event with the specified source and tree name replacing the current source and tree name.