TreeUi: honor isAlwaysPlus
authorKirill Kalishev <kirill.kalishev@jetbrains.com>
Fri, 16 Oct 2009 11:54:58 +0000 (15:54 +0400)
committerKirill Kalishev <kirill.kalishev@jetbrains.com>
Fri, 16 Oct 2009 11:54:58 +0000 (15:54 +0400)
platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java

index c9bb2b2a8f00c828233240bbfd3b292c859bd2be..5454d9177e418c9b68a4c4f4486314d0eb5a0c42 100644 (file)
@@ -799,7 +799,12 @@ public class AbstractTreeUi {
       }
 
       boolean bgBuild = isToBuildInBackground(descriptor);
-      boolean notRequiredToUpdateChildren = !forcedNow && !wasExpanded && !forceUpdate;
+      boolean notRequiredToUpdateChildren = !forcedNow && !wasExpanded;
+
+      if (notRequiredToUpdateChildren && forceUpdate && !wasExpanded) {
+        notRequiredToUpdateChildren = getBuilder().isAlwaysShowPlus(descriptor);
+      }
+
       LoadedChildren preloaded = loadedChildren;
       boolean descriptorWasUpdated = descriptorIsUpToDate;