mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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() {
|
||||
|
||||
+6
@@ -99,6 +99,12 @@ public class VFilePropertyChangeEvent extends VFileEvent {
|
||||
return myPropertyName;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getPath() {
|
||||
return computePath();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String computePath() {
|
||||
|
||||
Reference in New Issue
Block a user