public class VFileMoveEvent extends VFileEvent
| Constructor and Description |
|---|
VFileMoveEvent(java.lang.Object requestor,
VirtualFile file,
VirtualFile newParent) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
computePath() |
boolean |
equals(java.lang.Object o) |
VirtualFile |
getFile()
Returns the VirtualFile which this event belongs to.
|
VirtualFileSystem |
getFileSystem() |
VirtualFile |
getNewParent() |
java.lang.String |
getNewPath() |
VirtualFile |
getOldParent() |
java.lang.String |
getOldPath() |
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. |
int |
hashCode() |
boolean |
isValid() |
java.lang.String |
toString() |
getRequestor, isFromRefresh, isFromSavepublic VFileMoveEvent(java.lang.Object requestor,
VirtualFile file,
VirtualFile newParent)
public VirtualFile getFile()
VFileEventVFileCreateEvent.getFile() needs
VirtualFile.findChild(String) which may be a performance leak.getFile in class VFileEventpublic VirtualFile getNewParent()
public VirtualFile getOldParent()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 getOldPath()
public java.lang.String getNewPath()