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, isFromSave
public VFileMoveEvent(java.lang.Object requestor, VirtualFile file, VirtualFile newParent)
public VirtualFile getFile()
VFileEvent
VFileCreateEvent.getFile()
needs
VirtualFile.findChild(String)
which may be a performance leak.getFile
in class VFileEvent
public VirtualFile getNewParent()
public VirtualFile getOldParent()
public java.lang.String toString()
toString
in class java.lang.Object
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 getOldPath()
public java.lang.String getNewPath()