mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
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:
committed by
intellij-monorepo-bot
parent
d353215d8a
commit
1554bb4535
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user