public abstract class PsiTreeChangeEvent
extends java.util.EventObject
CachedValue
with PsiModificationTracker.MODIFICATION_COUNT
or VFS events where possible. Here are just some of the complications with PSI events:
PROP_UNLOADED_PSI
, not mentioning your file at all.PsiTreeChangeListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected PsiElement |
myChild |
protected PsiElement |
myElement |
protected PsiFile |
myFile |
protected PsiElement |
myNewChild |
protected PsiElement |
myNewParent |
protected java.lang.Object |
myNewValue |
protected int |
myOffset |
protected PsiElement |
myOldChild |
protected int |
myOldLength |
protected PsiElement |
myOldParent |
protected java.lang.Object |
myOldValue |
protected PsiElement |
myParent |
protected java.lang.String |
myPropertyName |
static java.lang.String |
PROP_DIRECTORY_NAME |
static java.lang.String |
PROP_FILE_NAME |
static java.lang.String |
PROP_FILE_TYPES |
static java.lang.String |
PROP_ROOTS |
static java.lang.String |
PROP_UNLOADED_PSI
A property change event with this property is fired when some change (e.g.
|
static java.lang.String |
PROP_WRITABLE |
Modifier | Constructor and Description |
---|---|
protected |
PsiTreeChangeEvent(PsiManager manager) |
Modifier and Type | Method and Description |
---|---|
PsiElement |
getChild() |
PsiElement |
getElement() |
PsiFile |
getFile() |
PsiElement |
getNewChild() |
PsiElement |
getNewParent() |
java.lang.Object |
getNewValue() |
PsiElement |
getOldChild() |
PsiElement |
getOldParent() |
java.lang.Object |
getOldValue() |
PsiElement |
getParent() |
java.lang.String |
getPropertyName() |
public static final java.lang.String PROP_FILE_NAME
public static final java.lang.String PROP_DIRECTORY_NAME
public static final java.lang.String PROP_WRITABLE
public static final java.lang.String PROP_ROOTS
public static final java.lang.String PROP_FILE_TYPES
public static final java.lang.String PROP_UNLOADED_PSI
protected PsiElement myParent
protected PsiElement myOldParent
protected PsiElement myNewParent
protected PsiElement myChild
protected PsiElement myOldChild
protected PsiElement myNewChild
protected PsiFile myFile
protected int myOffset
protected int myOldLength
protected PsiElement myElement
protected java.lang.String myPropertyName
protected java.lang.Object myOldValue
protected java.lang.Object myNewValue
protected PsiTreeChangeEvent(PsiManager manager)
public PsiElement getParent()
public PsiElement getOldParent()
public PsiElement getNewParent()
public PsiElement getChild()
public PsiElement getOldChild()
public PsiElement getNewChild()
public PsiElement getElement()
public java.lang.String getPropertyName()
public java.lang.Object getOldValue()
public java.lang.Object getNewValue()
public PsiFile getFile()