mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
exclude search popups in isFromContextMenu
Fixes missing `FindInPathAction` in Find Action. GitOrigin-RevId: 27b6d6ef8ed7fa9e00983ec22e3ebca5b42cfa76
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7f04615223
commit
a7dc5858f4
@@ -1252,6 +1252,7 @@ c:com.intellij.openapi.actionSystem.AnActionEvent
|
||||
- f:isFromActionToolbar():Z
|
||||
- f:isFromContextMenu():Z
|
||||
- f:isFromMainMenu():Z
|
||||
- f:isFromSearchPopup():Z
|
||||
- f:isInInjectedContext():Z
|
||||
- f:setInjectedContext(Z):V
|
||||
- f:setUpdateSession(com.intellij.openapi.actionSystem.UpdateSession):V
|
||||
|
||||
@@ -277,7 +277,7 @@ public class AnActionEvent implements PlaceProvider {
|
||||
* @see ActionUiKind#POPUP
|
||||
*/
|
||||
public final boolean isFromContextMenu() {
|
||||
return myUiKind instanceof ActionUiKind.Popup o && !o.isMainMenu();
|
||||
return myUiKind instanceof ActionUiKind.Popup o && !o.isMainMenu() && !o.isSearchPopup();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -288,6 +288,14 @@ public class AnActionEvent implements PlaceProvider {
|
||||
return myUiKind instanceof ActionUiKind.Popup o && o.isMainMenu();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see #getUiKind()
|
||||
* @see ActionUiKind#POPUP
|
||||
*/
|
||||
public final boolean isFromSearchPopup() {
|
||||
return myUiKind instanceof ActionUiKind.Popup o && o.isSearchPopup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the presentation which represents the action in the place from where it is invoked
|
||||
* or updated.
|
||||
|
||||
Reference in New Issue
Block a user