From 50abcbfa6c29a4e58f86edc85f8ff87db1c2405f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 12 Mar 2024 11:45:15 +0100 Subject: [PATCH] basic_action_system.md: minor --- topics/basics/basic_action_system.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/topics/basics/basic_action_system.md b/topics/basics/basic_action_system.md index 03b1d9d12..d2c64b3ed 100644 --- a/topics/basics/basic_action_system.md +++ b/topics/basics/basic_action_system.md @@ -1,4 +1,4 @@ - + # Actions @@ -33,7 +33,7 @@ The IntelliJ Platform calls methods of actions when a user interacts with a menu > If the `AnAction` class uses a field to store data that has a shorter lifetime and doesn't clear this data promptly, the data leaks. > For example, any `AnAction` data that exists only within the context of a `Project` causes the `Project` to be kept in memory after the user has closed it. > -{style="warning"} +{style="warning" title="No fields allowed"} ### Principal Implementation Overrides @@ -74,7 +74,7 @@ Implementors must ensure that changing presentation and availability status hand > It must _execute very quickly_; no real work must be performed. > For example, checking selection in a tree or a list is considered valid, but working with the file system is not. > -{style="warning"} +{style="warning" title="Performance"} > If the new state of an action cannot be determined quickly, then evaluation should be performed in the `AnAction.actionPerformed()` method, and [notify](notifications.md) the user that the action cannot be executed if the context isn't suitable. >