IJPL-59622 (EA-826545) move SearchEverywherePresentationProvider.java to lang-api module and add it to api-dump

GitOrigin-RevId: ae5e09ab24cffe13cb1bb3c18a10aefbd2be4ff0
This commit is contained in:
Mikhail Sokolov
2024-07-05 15:10:26 +02:00
committed by intellij-monorepo-bot
parent d353215d8a
commit 1554bb4535
4 changed files with 18 additions and 9 deletions

View File

@@ -2807,6 +2807,8 @@ com.intellij.ide.actions.searcheverywhere.SearchEverywhereContributorFactory
- isAvailable(com.intellij.openapi.project.Project):Z
com.intellij.ide.actions.searcheverywhere.SearchEverywhereExtendedInfoProvider
- createExtendedInfo():com.intellij.ide.actions.searcheverywhere.ExtendedInfo
com.intellij.ide.actions.searcheverywhere.SearchEverywherePresentationProvider
- a:getTargetPresentation(java.lang.Object):com.intellij.platform.backend.presentation.TargetPresentation
com.intellij.ide.actions.searcheverywhere.SearchEverywhereToggleAction
- a:canToggleEverywhere():Z
- a:isEverywhere():Z

View File

@@ -0,0 +1,16 @@
// 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.ide.actions.searcheverywhere;
import com.intellij.platform.backend.presentation.TargetPresentation;
/**
* This interface is designed to be implemented by {@link javax.swing.ListCellRenderer} that are returned by {@link SearchEverywhereContributor}.
* It mainly caters to the cases where returned items utilize operations that are slow in execution, and hence, need to be computed
* in the background to prevent freezing of the interface. ListCellRenderers are required to implement this interface when the items returned
* are not implementations of either the PsiElement or the NavigationItem. Implementing this interface ensures that the correct TargetPresentation
* is returned for such items.
*/
public interface SearchEverywherePresentationProvider<T> {
TargetPresentation getTargetPresentation(T element);
}

View File

@@ -8,7 +8,6 @@ import com.intellij.ide.util.scopeChooser.ScopeDescriptor;
import com.intellij.navigation.ItemPresentation;
import com.intellij.navigation.NavigationItem;
import com.intellij.navigation.PsiElementNavigationItem;
import com.intellij.navigation.SearchEverywherePresentationProvider;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressIndicator;

View File

@@ -1,8 +0,0 @@
// 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.navigation;
import com.intellij.platform.backend.presentation.TargetPresentation;
public interface SearchEverywherePresentationProvider<T> {
TargetPresentation getTargetPresentation(T element);
}