IDEA-235642: clean caches in selection

GitOrigin-RevId: 0485211fc3143a5a0ca48e4698f71143ab4986d5
This commit is contained in:
Sergey Malenkov
2020-05-01 09:40:21 +00:00
committed by intellij-monorepo-bot
parent 43741a9991
commit f4df2f203f
@@ -131,6 +131,12 @@ public abstract class AbstractProjectViewPane implements DataProvider, Disposabl
private void rebuildCompletely() {
updateFromRoot(true).waitFor(5000);
myReadTreeState.clear(); // cleanup cached tree paths
JTree tree = getTree();
if (tree != null) {
tree.clearSelection();
tree.setAnchorSelectionPath(null);
tree.setLeadSelectionPath(null);
}
}
/**