public class VFileContentChangeEvent extends VFileEvent
Constructor and Description |
---|
VFileContentChangeEvent(java.lang.Object requestor,
VirtualFile file,
long oldModificationStamp,
long newModificationStamp,
boolean isFromRefresh) |
VFileContentChangeEvent(java.lang.Object requestor,
VirtualFile file,
long oldModificationStamp,
long newModificationStamp,
long oldTimestamp,
long newTimestamp,
long oldLength,
long newLength,
boolean isFromRefresh) |
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() |
long |
getModificationStamp() |
long |
getNewLength() |
long |
getNewTimestamp() |
long |
getOldLength() |
long |
getOldModificationStamp() |
long |
getOldTimestamp() |
int |
hashCode() |
boolean |
isLengthAndTimestampDiffProvided() |
boolean |
isValid() |
java.lang.String |
toString() |
getPath, getRequestor, isFromRefresh, isFromSave
public VFileContentChangeEvent(java.lang.Object requestor, VirtualFile file, long oldModificationStamp, long newModificationStamp, boolean isFromRefresh)
public VFileContentChangeEvent(java.lang.Object requestor, VirtualFile file, long oldModificationStamp, long newModificationStamp, long oldTimestamp, long newTimestamp, long oldLength, long newLength, boolean isFromRefresh)
public VirtualFile getFile()
VFileEvent
NB: Use this method with caution, because VFileCreateEvent.getFile()
needs
VirtualFile.findChild(String)
which may be a performance leak.
getFile
in class VFileEvent
public long getModificationStamp()
public long getOldModificationStamp()
public long getOldTimestamp()
public long getNewTimestamp()
public long getOldLength()
public long getNewLength()
public boolean isLengthAndTimestampDiffProvided()
public java.lang.String toString()
toString
in class java.lang.Object
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