scope view: restore expand state during update (IDEA-79804) cidr/112.437 idea/112.438 pycharm/112.440 rubymine/112.441 storm/112.436
authoranna <Anna.Kozlova@jetbrains.com>
Sun, 15 Jan 2012 17:36:50 +0000 (18:36 +0100)
committeranna <Anna.Kozlova@jetbrains.com>
Sun, 15 Jan 2012 17:36:50 +0000 (18:36 +0100)
platform/lang-impl/src/com/intellij/ide/scopeView/ScopeTreeViewPanel.java

index 94ac5e24c046477ab8b08b0f28b6713439d5af96..650d2fb3472dd740f87349e8511d73e1d570b51a 100644 (file)
@@ -423,7 +423,6 @@ public class ScopeTreeViewPanel extends JPanel implements Disposable {
     if (rootToReload != null && rootToReload != treeModel.getRoot()) {
       final List<TreePath> treePaths = TreeUtil.collectExpandedPaths(myTree, new TreePath(rootToReload.getPath()));
       final List<TreePath> selectionPaths = TreeUtil.collectSelectedPaths(myTree, new TreePath(rootToReload.getPath()));
-      treeModel.reload(rootToReload);
       final TreePath path = new TreePath(rootToReload.getPath());
       final boolean wasCollapsed = myTree.isCollapsed(path);
       final Runnable runnable = new Runnable() {