mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
basic_action_system.md: minor
This commit is contained in:
parent
8b7c2d7d13
commit
16b486d7f0
@ -434,6 +434,6 @@ Sometimes, it is required to execute actions programmatically, e.g., executing a
|
|||||||
Executing actions can be achieved with [`ActionUtils.invokeAction()`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionUtil.java).
|
Executing actions can be achieved with [`ActionUtils.invokeAction()`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ActionUtil.java).
|
||||||
|
|
||||||
> Executing actions programmatically should be avoided whenever possible.
|
> Executing actions programmatically should be avoided whenever possible.
|
||||||
> If an action executed programmatically is under your control, extract its logic to a service or util and call it directly.
|
> If an action executed programmatically is under your control, extract its logic to a [service](plugin_services.md) or utility class and call it directly.
|
||||||
>
|
>
|
||||||
{style="warning"}
|
{style="warning"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user