diff options
author | Charlie Tsai <chartsai@google.com> | 2022-08-02 11:27:46 +0100 |
---|---|---|
committer | Charlie Tsai <chartsai@google.com> | 2022-08-02 15:16:13 +0000 |
commit | d6fff3daaa686aa84c8d88fed288c18d6bc7b62f (patch) | |
tree | 93de139c5b9d058e944129dc8092073889421fe2 /designer | |
parent | cfaed1957a37953bcadc70772a7cd5b67bb7c67f (diff) | |
download | idea-d6fff3daaa686aa84c8d88fed288c18d6bc7b62f.tar.gz |
Add tree search function to shared issue panel
Support searching the tree node by directly typing in the panel.
Bug: N/A
Test: manually (UI-function)
Change-Id: Ie14aa399b4843b06e98d7cdcb10857d954a2864c
Diffstat (limited to 'designer')
-rw-r--r-- | designer/src/com/android/tools/idea/common/error/DesignerCommonIssuePanel.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/designer/src/com/android/tools/idea/common/error/DesignerCommonIssuePanel.kt b/designer/src/com/android/tools/idea/common/error/DesignerCommonIssuePanel.kt index d2450bf108d..ec251c60940 100644 --- a/designer/src/com/android/tools/idea/common/error/DesignerCommonIssuePanel.kt +++ b/designer/src/com/android/tools/idea/common/error/DesignerCommonIssuePanel.kt @@ -37,6 +37,7 @@ import com.intellij.openapi.wm.ToolWindowManager import com.intellij.ui.OnePixelSplitter import com.intellij.ui.PopupHandler import com.intellij.ui.ScrollPaneFactory +import com.intellij.ui.TreeSpeedSearch import com.intellij.ui.border.CustomLineBorder import com.intellij.ui.tree.AsyncTreeModel import com.intellij.ui.tree.TreeVisitor @@ -119,6 +120,7 @@ class DesignerCommonIssuePanel(parentDisposable: Disposable, private val project tree.isRootVisible = false tree.selectionModel.selectionMode = TreeSelectionModel.SINGLE_TREE_SELECTION + TreeSpeedSearch(tree) EditSourceOnDoubleClickHandler.install(tree) EditSourceOnEnterKeyHandler.install(tree) |