working_with_custom_actions.md: Clean up the "unregistered action" inspection tip

This commit is contained in:
Karol Lewandowski 2024-12-09 14:01:13 +01:00
parent c0b008d49e
commit 34e852b738
2 changed files with 2 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

View File

@ -60,12 +60,6 @@ A more comprehensive explanation of action registration is available in the [](b
### Registering an Action with the New Action Form
IntelliJ IDEA has an embedded inspection that spots unregistered actions.
Verify the inspection is enabled at <ui-path>Settings | Editor | Inspections | Plugin DevKit | Code | Component/Action not registered</ui-path>.
Here is an example for this stage of the `PopupDialogAction` class:
!["Action never used" inspection](action_never_used.png){width="600"}
To register `PopupDialogAction` and set up its basic attributes press <shortcut>Alt+Shift+Enter</shortcut>.
Fill out the <control>New Action</control> form to set up the parameters for `PopupDialogAction`:
@ -143,6 +137,8 @@ The example above uses this element to ensure the shorter text "Popup Dialog Act
Otherwise, the default, more explanatory text "Action Basics Plugin: Popup Dialog Action" is shown.
For more information, see [](basic_action_system.md#setting-the-override-text-element).
> Use inspection <ui-path>Settings | Editor | Inspections | Plugin DevKit | Code | Component/Action not registered</ui-path> for reporting unregistered actions.
## Testing the Minimal Custom Action Implementation
After performing the steps described above, [compile and run](creating_plugin_project.md#executing-the-plugin) the plugin to see the newly created action available as a <ui-path>Tools</ui-path> menu item, which is within the context of the main menu: