internal_ui_inspector.md: cleanup, note locating Action/Action ID (IJSDK-805)

This commit is contained in:
Yann Cébron 2020-05-05 16:24:18 +02:00
parent b680fb81b5
commit b4a791753a
2 changed files with 7 additions and 4 deletions

View File

@ -168,6 +168,8 @@ Group IDs for the IntelliJ Platform are defined in [`PlatformActions.xml`](upsou
This, and additional information can also be found by using the [Code Completion](https://www.jetbrains.com/help/idea/auto-completing-code.html#invoke-basic-completion), [Quick Definition](https://www.jetbrains.com/help/idea/viewing-reference-information.html#view-definition-symbols) and [Quick Documentation](https://www.jetbrains.com/help/idea/viewing-reference-information.html#inline-quick-documentation) features.
> **TIP** To lookup existing Action ID (e.g. for use in `relative-to-action`), [UI Inspector](/reference_guide/internal_actions/internal_ui_inspector.md) can be used.
```xml
<!-- Actions -->
<actions>

View File

@ -15,12 +15,13 @@ If the menu item **Tools \| Internal Actions \| UI \| UI Inspector** is not avai
Before using the _UI Inspector_, it must be enabled by selecting the menu item **Tools \| Internal Actions \| UI \| UI Inspector**.
The enabled state of the _UI Inspector_ is modal; it remains enabled until it is disabled by selecting the _UI Inspector_ menu item again.
When enabled, the _UI Inspector_ menu entry displays a check mark.
## Using the UI Inspector
While enabled, centering the cursor on a UI element and pressing _control-alt_ when _clicking_ the mouse reveals the internal description of the UI element.
While enabled, centering the cursor on a UI element and pressing <kbd>Control/Cmd</kbd>+<kbd>Alt</kbd> when _clicking_ the mouse reveals the properties of the Swing component.
> **TIP** If the component relates to an [Action](/basics/action_system.md) (e.g. Action Button or Menu Item), the Action class name and its ID will be shown.
For example, to get information about the _Build Project_ button's icon (hammer) on the toolbar (highlighted in green), put the mouse cursor on the icon and press <kbd>Control/Cmd</kbd>+<kbd>Alt</kbd> while clicking the mouse.
For example, to get information about the build (hammer) icon on the toolbar, put the cursor on the icon and press _control-alt_ while clicking the mouse.
The _UI Inspector_ displays that the icon has the internal path `Allcons.Actions.Compile`:
![Internal Icon Info](img/internal_uii_icon_info.png)