Don't cache the path of VFile move and rename events

The path is different before() and after() the VFS change,
so if cached it stays equal to the old path, not new.

Follow-up to fcde9ad
This commit is contained in:
Kirill Likhodedov
2017-08-18 17:46:41 +03:00
parent 67c7b12a1c
commit 4b206bd379
2 changed files with 12 additions and 0 deletions
@@ -57,6 +57,12 @@ public class VFileMoveEvent extends VFileEvent {
return "VfsEvent[move " + myFile.getName() +" from " + myOldParent + " to " + myNewParent + "]";
}
@NotNull
@Override
public String getPath() {
return computePath();
}
@NotNull
@Override
protected String computePath() {
@@ -99,6 +99,12 @@ public class VFilePropertyChangeEvent extends VFileEvent {
return myPropertyName;
}
@NotNull
@Override
public String getPath() {
return computePath();
}
@NotNull
@Override
protected String computePath() {