From 5115839ed105a2d089bf1dd372a6c55eff05dc18 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Fri, 12 May 2017 21:51:59 +0200 Subject: [PATCH] ability to control building children in background for package view by registry option --- .../src/com/intellij/ide/projectView/impl/PackageViewPane.java | 2 +- platform/util/resources/misc/registry.properties | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/ide/projectView/impl/PackageViewPane.java b/java/java-impl/src/com/intellij/ide/projectView/impl/PackageViewPane.java index 447a21ae49cb..1a0e2c16bda5 100644 --- a/java/java-impl/src/com/intellij/ide/projectView/impl/PackageViewPane.java +++ b/java/java-impl/src/com/intellij/ide/projectView/impl/PackageViewPane.java @@ -227,7 +227,7 @@ public final class PackageViewPane extends AbstractProjectViewPSIPane { @Override public boolean isToBuildChildrenInBackground(Object element) { - return true; + return Registry.is("ide.projectView.PackageViewTreeStructure.BuildChildrenInBackground"); } }; } diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index b4278746ce5f..29f300b3f0de 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -1067,6 +1067,8 @@ ide.projectView.ProjectViewPaneTreeStructure.BuildChildrenInBackground=true ide.projectView.ProjectViewPaneTreeStructure.BuildChildrenInBackground.description=Temporary ability to control a tree building for the Project View pane ide.abstractTreeUi.BuildChildrenInBackgroundYieldingToWriteAction=true ide.abstractTreeUi.BuildChildrenInBackgroundYieldingToWriteAction.description=Temporary ability to control a interruptible tree building +ide.projectView.PackageViewTreeStructure.BuildChildrenInBackground=true +ide.projectView.PackageViewTreeStructure.BuildChildrenInBackground.description=Temporary ability to control a tree building for the Package View pane ide.projectView.show.visibility=false ide.projectView.show.visibility.description=Shows visibility icon in Project View nodes