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, isFromSavepublic 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()
VFileEventVFileCreateEvent.getFile() needs
VirtualFile.findChild(String) which may be a performance leak.getFile in class VFileEventpublic java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public java.lang.String getPropertyName()
public java.lang.String getPath()
VFileEventevent.getPath() can become not equal to event.getFile().getPath()).getPath in class VFileEventprotected java.lang.String computePath()
computePath in class VFileEventpublic VirtualFileSystem getFileSystem()
getFileSystem in class VFileEventpublic boolean isValid()
isValid in class VFileEventpublic boolean equals(java.lang.Object o)
equals in class VFileEventpublic int hashCode()
hashCode in class VFileEventpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getOldPath()
public java.lang.String getNewPath()