public abstract class PsiTreeChangeAdapter extends java.lang.Object implements PsiTreeChangeListener
PsiTreeChangeListener
.Constructor and Description |
---|
PsiTreeChangeAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAddition(PsiTreeChangeEvent event)
Invoked just before adding a child to the tree.
Parent element is returned by event.getParent() .Added child is returned by event.getChild . |
void |
beforeChildMovement(PsiTreeChangeEvent event)
Invoked just before movement of a child in the tree by changing its parent or by changing its position in the same parent.
Child to be moved is returned by event.getChild() .The old parent is returned by event.getOldParent() .The new parent is returned by event.getNewParent() . |
void |
beforeChildRemoval(PsiTreeChangeEvent event)
Invoked just before removal of a child from the tree.
Child to be removed is returned by event.getChild() .Parent element is returned by event.getParent() . |
void |
beforeChildrenChange(PsiTreeChangeEvent event)
Invoked before a mass change of children of the specified node.
The parent the nodes of which are changing is returned by event.getParent() . |
void |
beforeChildReplacement(PsiTreeChangeEvent event)
Invoked just before replacement of a child in the tree by another element.
Child to be replaced is returned by event.getOldChild() .Parent element is returned by event.getParent() . |
void |
beforePropertyChange(PsiTreeChangeEvent event)
Invoked just before changing of some property of an element.
Element, whose property is to be changed is returned by event.getElement() .The property name is returned by event.getPropertyName() .The old property value is returned by event.getOldValue() . |
void |
childAdded(PsiTreeChangeEvent event)
Invoked just after adding of a new child to the tree.
The added child is returned by event.getChild() .Parent element is returned by event.getParent() . |
void |
childMoved(PsiTreeChangeEvent event)
Invoked just after movement of a child in the tree by changing its parent or by changing its position in the same parent.
The moved child is returned by event.getChild() .The old parent is returned by event.getOldParent() .The new parent is returned by event.getNewParent() . |
void |
childRemoved(PsiTreeChangeEvent event)
Invoked just after removal of a child from the tree.
The removed child is returned by event.getChild() . |
void |
childrenChanged(PsiTreeChangeEvent event)
Invoked after a mass change of children of the specified node.
The parent the nodes of which have changed is returned by event.getParent() . |
void |
childReplaced(PsiTreeChangeEvent event)
Invoked just after replacement of a child in the tree by another element.
The replaced child is returned by event.getOldChild() . |
void |
propertyChanged(PsiTreeChangeEvent event)
Invoked just after changing of some property of an element.
Element, whose property has changed is returned by event.getElement() .The property name is returned by event.getPropertyName() .The old property value is returned by event.getOldValue() .The new property value is returned by event.getNewValue() . |
public void beforeChildAddition(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.event.getChild
.beforeChildAddition
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildRemoval(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getParent()
.beforeChildRemoval
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildReplacement(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getOldChild()
.event.getParent()
.beforeChildReplacement
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildMovement(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getOldParent()
.event.getNewParent()
.beforeChildMovement
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforeChildrenChange(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.beforeChildrenChange
in interface PsiTreeChangeListener
event
- the event object describing the change.public void beforePropertyChange(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getElement()
.event.getPropertyName()
.event.getOldValue()
.beforePropertyChange
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childAdded(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getParent()
.childAdded
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childRemoved(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
. Note that
only equals()
, hashCode()
, isValid()
methods
can be safely invoked for this element, because it's not valid anymore.event.getParent()
.childRemoved
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childReplaced(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getOldChild()
. Note that
only equals()
, hashCode()
, isValid()
methods
can be safely invoked for this element, because it's not valid anymore.event.getNewChild()
.event.getParent()
.childReplaced
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childMoved(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getChild()
.event.getOldParent()
.event.getNewParent()
.childMoved
in interface PsiTreeChangeListener
event
- the event object describing the change.public void childrenChanged(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getParent()
.childrenChanged
in interface PsiTreeChangeListener
event
- the event object describing the change.public void propertyChanged(PsiTreeChangeEvent event)
PsiTreeChangeListener
event.getElement()
.event.getPropertyName()
.event.getOldValue()
.event.getNewValue()
.propertyChanged
in interface PsiTreeChangeListener
event
- the event object describing the change.