public class VirtualFileEvent
extends java.util.EventObject
VirtualFileListener
,
Serialized FormConstructor and Description |
---|
VirtualFileEvent(java.lang.Object requestor,
VirtualFile file,
java.lang.String fileName,
VirtualFile parent)
Deprecated.
|
VirtualFileEvent(java.lang.Object requestor,
VirtualFile file,
VirtualFile parent,
long oldModificationStamp,
long newModificationStamp) |
Modifier and Type | Method and Description |
---|---|
VirtualFile |
getFile()
Returns the file to which the change happened.
|
java.lang.String |
getFileName()
Returns the name of the changed file.
|
long |
getNewModificationStamp()
Returns the modification stamp of the file after the event.
|
long |
getOldModificationStamp()
Returns the modification stamp of the file before the event.
|
VirtualFile |
getParent()
Returns the parent of the virtual file, or
null if the file is a root directory
or it was not possible to determine the parent (depends on the specific VFS implementation). |
java.lang.Object |
getRequestor()
Returns the object that requested the operation changing the VFS, or
null if the change was
caused by an external process and detected during VFS refresh. |
boolean |
isFromRefresh() |
boolean |
isFromSave()
Returns
true if the VFS change described by the event is the save of a document. |
@Deprecated public VirtualFileEvent(java.lang.Object requestor, VirtualFile file, java.lang.String fileName, VirtualFile parent)
VirtualFileEvent(Object, VirtualFile, VirtualFile, long, long)
insteadpublic VirtualFileEvent(java.lang.Object requestor, VirtualFile file, VirtualFile parent, long oldModificationStamp, long newModificationStamp)
public VirtualFile getFile()
public java.lang.String getFileName()
public VirtualFile getParent()
null
if the file is a root directory
or it was not possible to determine the parent (depends on the specific VFS implementation).public java.lang.Object getRequestor()
null
if the change was
caused by an external process and detected during VFS refresh.public long getOldModificationStamp()
VirtualFile.getModificationStamp()
public long getNewModificationStamp()
VirtualFile.getModificationStamp()
public boolean isFromRefresh()
public boolean isFromSave()
true
if the VFS change described by the event is the save of a document.