mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
note about DumbAwareAction usage
This commit is contained in:
parent
fb9d8db612
commit
9e86010eec
@ -26,7 +26,9 @@ The [](grouping_action.md) tutorial demonstrates three types of groups that can
|
|||||||
## Action Implementation
|
## Action Implementation
|
||||||
|
|
||||||
An action is a class derived from the abstract class [`AnAction`](%gh-ic%/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnAction.java).
|
An action is a class derived from the abstract class [`AnAction`](%gh-ic%/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnAction.java).
|
||||||
For actions available during [dumb mode](indexing_and_psi_stubs.md#dumb-mode), extend [`DumbAwareAction`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/project/DumbAwareAction.java).
|
For actions available during [dumb mode](indexing_and_psi_stubs.md#dumb-mode), extend [`DumbAwareAction`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/project/DumbAwareAction.java)
|
||||||
|
(do not override `AnAction.isDumbAware()` instead).
|
||||||
|
|
||||||
See also [](#useful-action-base-classes) below.
|
See also [](#useful-action-base-classes) below.
|
||||||
|
|
||||||
The IntelliJ Platform calls methods of actions when a user interacts with a menu item or toolbar button.
|
The IntelliJ Platform calls methods of actions when a user interacts with a menu item or toolbar button.
|
||||||
|
@ -52,7 +52,7 @@ Since 2024.2, this includes also [intentions](code_intentions.md) and [quick-fix
|
|||||||
|
|
||||||
#### Actions
|
#### Actions
|
||||||
|
|
||||||
For [](basic_action_system.md) available during Dumb Mode, extend [`DumbAwareAction`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/project/DumbAwareAction.java).
|
For [](basic_action_system.md) available during Dumb Mode, extend [`DumbAwareAction`](%gh-ic%/platform/ide-core/src/com/intellij/openapi/project/DumbAwareAction.java) (do not override `AnAction.isDumbAware()` instead).
|
||||||
|
|
||||||
#### Other API
|
#### Other API
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user