mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
action_system.md: use snippet for EP link
This commit is contained in:
parent
f956cabf79
commit
c8f548cf3b
@ -399,9 +399,9 @@ See also [](popups.md#action-groups) for more advanced popups.
|
|||||||
If an action toolbar is attached to a specific component (for example, a panel in a tool window), call `ActionToolbar.setTargetComponent()` and pass the related component's instance as a parameter.
|
If an action toolbar is attached to a specific component (for example, a panel in a tool window), call `ActionToolbar.setTargetComponent()` and pass the related component's instance as a parameter.
|
||||||
Setting the target ensures that the toolbar buttons' state depends on the state of the related component, not on the current focus location within the IDE frame.
|
Setting the target ensures that the toolbar buttons' state depends on the state of the related component, not on the current focus location within the IDE frame.
|
||||||
|
|
||||||
To add an action group to the list of customizable actions in <ui-path>Settings | Appearance & Behavior | Menus and Toolbars</ui-path>, implement the
|
To add an action group to the list of customizable actions in <ui-path>Settings | Appearance & Behavior | Menus and Toolbars</ui-path>, implement
|
||||||
[`CustomizableActionGroupProvider`](%gh-ic%/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomizableActionGroupProvider.java)
|
[`CustomizableActionGroupProvider`](%gh-ic%/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomizableActionGroupProvider.java)
|
||||||
extension point registered in `com.intellij.customizableActionGroupProvider`,
|
and register in <include from="snippets.topic" element-id="ep"><var name="ep" value="com.intellij.customizableActionGroupProvider"/></include>,
|
||||||
and ensure that the [action group](plugin_configuration_file.md#idea-plugin__actions__group) defines the `text` attribute or is [localized](#localizing-actions-and-groups).
|
and ensure that the [action group](plugin_configuration_file.md#idea-plugin__actions__group) defines the `text` attribute or is [localized](#localizing-actions-and-groups).
|
||||||
|
|
||||||
See [](toolbar.md) in UI Guidelines for an overview.
|
See [](toolbar.md) in UI Guidelines for an overview.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user