Commit 0fe43f54 authored by Dmitry Jemerov's avatar Dmitry Jemerov Committed by Anton Makeev
Browse files

after the user presses Expand All in Usages view, subsequent usage searches...

after the user presses Expand All in Usages view, subsequent usage searches are shown as always expanded (IDEA-82552)
(cherry picked from commit fb286097)
parent a6ec0c89
Showing with 4 additions and 5 deletions
+4 -5
......@@ -214,7 +214,6 @@ projectView.showHierarchyErrors=true
projectView.hide.dot.idea=true
show.live.templates.in.completion=false
documentation.component.editor.font=false
find.usage.expand.all=false
ide.completion.show.better.matching.classes=false
# suppress inspection "UnusedProperty"
......@@ -316,4 +315,4 @@ windows.jumplist.description=Enables JumpLists on Windows
# suppress inspection "UnusedProperty"
GRADLE.system.in.process=true
# suppress inspection "UnusedProperty"
GRADLE.system.in.process.description=Whether IDEA should use 'in-process' mode for interaction with gradle api
\ No newline at end of file
GRADLE.system.in.process.description=Whether IDEA should use 'in-process' mode for interaction with gradle api
......@@ -35,7 +35,6 @@ import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.ui.SimpleToolWindowPanel;
import com.intellij.openapi.ui.Splitter;
import com.intellij.openapi.util.*;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.ReadonlyStatusHandler;
import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.openapi.vfs.VirtualFile;
......@@ -83,7 +82,6 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTrackerListener {
@NonNls public static final String SHOW_RECENT_FIND_USAGES_ACTION_ID = "UsageView.ShowRecentFindUsages";
private static final boolean EXPAND_ALL = Registry.is("find.usage.expand.all");
private final UsageNodeTreeBuilder myBuilder;
private final MyPanel myRootPanel;
......@@ -510,6 +508,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
@Override
public void expandAll() {
UsageViewImpl.this.expandAll();
UsageViewSettings.getInstance().setExpanded(true);
}
@Override
......@@ -520,6 +519,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
@Override
public void collapseAll() {
UsageViewImpl.this.collapseAll();
UsageViewSettings.getInstance().setExpanded(false);
}
@Override
......@@ -1068,7 +1068,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
return;
}
showNode(firstUsageNode);
if (EXPAND_ALL) {
if (UsageViewSettings.getInstance().isExpanded()) {
expandAll();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment