public class VFilePropertyChangeEvent extends VFileEvent
Constructor and Description |
---|
VFilePropertyChangeEvent(java.lang.Object requestor,
VirtualFile file,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue,
boolean isFromRefresh) |
Modifier and Type | Method and Description |
---|---|
static void |
checkPropertyValuesCorrect(java.lang.Object requestor,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
protected java.lang.String |
computePath() |
boolean |
equals(java.lang.Object o) |
VirtualFile |
getFile()
Returns the VirtualFile which this event belongs to.
|
VirtualFileSystem |
getFileSystem() |
java.lang.String |
getNewPath() |
java.lang.Object |
getNewValue() |
java.lang.String |
getOldPath() |
java.lang.Object |
getOldValue() |
java.lang.String |
getPath()
Returns the file path (in system independent format) affected by this event.
Note that the path might be cached, thus can become out-of-date if requested later, asynchronously from the event dispatching procedure (e.g. |
java.lang.String |
getPropertyName() |
int |
hashCode() |
boolean |
isRename() |
boolean |
isValid() |
java.lang.String |
toString() |
getRequestor, isFromRefresh, isFromSave
public VFilePropertyChangeEvent(java.lang.Object requestor, VirtualFile file, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, boolean isFromRefresh)
public static void checkPropertyValuesCorrect(java.lang.Object requestor, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public boolean isRename()
public VirtualFile getFile()
VFileEvent
VFileCreateEvent.getFile()
needs
VirtualFile.findChild(String)
which may be a performance leak.getFile
in class VFileEvent
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public java.lang.String getPropertyName()
public java.lang.String getPath()
VFileEvent
event.getPath()
can become not equal to event.getFile().getPath()
).getPath
in class VFileEvent
protected java.lang.String computePath()
computePath
in class VFileEvent
public VirtualFileSystem getFileSystem()
getFileSystem
in class VFileEvent
public boolean isValid()
isValid
in class VFileEvent
public boolean equals(java.lang.Object o)
equals
in class VFileEvent
public int hashCode()
hashCode
in class VFileEvent
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getOldPath()
public java.lang.String getNewPath()