mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
working_with_custom_actions.md: Clean up the "unregistered action" inspection tip
This commit is contained in:
parent
c0b008d49e
commit
34e852b738
Binary file not shown.
Before Width: | Height: | Size: 64 KiB |
@ -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:
|
||||
|
||||
{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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user