[platform UI] IJPL-176359 Search Everywhere for RD: add preview

Refactoring

GitOrigin-RevId: 8d2d13a046f3388d7c13dbe01d26618015cb7397
This commit is contained in:
Tatiana Elfimova
2025-10-23 19:33:12 +00:00
committed by intellij-monorepo-bot
parent df600763e7
commit bde408ecdb
5 changed files with 9 additions and 5 deletions
@@ -89,6 +89,7 @@ class SeAllTab(private val delegate: SeTabDelegate) : SeTab {
companion object {
@ApiStatus.Internal
const val ID: String = SearchEverywhereManagerImpl.ALL_CONTRIBUTORS_GROUP_ID
@ApiStatus.Internal
val NAME: String = IdeBundle.message("searcheverywhere.all.elements.tab.name")
}
@@ -78,6 +78,6 @@ class SeClassesTab(private val delegate: SeTabDelegate) : SeTab {
const val ID: String = "ClassSearchEverywhereContributor"
val NAME: String
@ApiStatus.Internal get() = GotoClassPresentationUpdater.getTabTitlePluralized()
@ApiStatus.Internal get() = GotoClassPresentationUpdater.getTabTitlePluralized()
}
}
@@ -77,6 +77,7 @@ class SeFilesTab(private val delegate: SeTabDelegate) : SeTab {
companion object {
@Internal
const val ID: String = "FileSearchEverywhereContributor"
@Internal
val NAME: String = IdeBundle.message("search.everywhere.group.name.files")
}
@@ -76,6 +76,7 @@ open class SeSymbolsTab(private val delegate: SeTabDelegate) : SeTab {
companion object {
@ApiStatus.Internal
const val ID: String = "SymbolSearchEverywhereContributor"
@ApiStatus.Internal
val NAME: String = IdeBundle.message("search.everywhere.group.name.symbols")
}
@@ -1,7 +1,6 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.searchEverywhere.frontend.ui
import com.intellij.ide.actions.searcheverywhere.PreviewAction
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereTabsShortcutsUtils
import com.intellij.ide.actions.searcheverywhere.statistics.SearchEverywhereUsageTriggerCollector
import com.intellij.openapi.Disposable
@@ -205,11 +204,13 @@ class SePopupHeaderPane(
val tabs: List<Tab>,
val deferredTabs: Flow<Tab>,
val selectedTab: MutableStateFlow<Int>,
val showInFindToolWindowAction: AnAction?
val showInFindToolWindowAction: AnAction?,
) {
companion object {
fun createInitial(initialTabs: List<Tab>,
selectedTabId: String): Configuration =
fun createInitial(
initialTabs: List<Tab>,
selectedTabId: String,
): Configuration =
Configuration(initialTabs, emptyFlow(), MutableStateFlow(initialTabs.indexOfFirst { it.id == selectedTabId }), null)
}
}