grouping_action.md: cleanup link titles

This commit is contained in:
Yann Cébron 2019-11-28 20:55:55 +01:00
parent 0ebef700ce
commit 00e12536d8

View File

@ -41,7 +41,7 @@ Rather `SimpleAction` is defined in the same
#### 2.1.3. Creating an action for the simple action group #### 2.1.3. Creating an action for the simple action group
To create an action we need to extend the To create an action we need to extend the
[AnAction.java](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnAction.java) [AnAction](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnAction.java)
class. This example uses the `SimplePopDialogAction` class, which pops a dialog to give users feedback when a class. This example uses the `SimplePopDialogAction` class, which pops a dialog to give users feedback when a
menu item is chosen. See the [Registering an Action](working_with_custom_actions.md) menu item is chosen. See the [Registering an Action](working_with_custom_actions.md)
page for more information about this class. page for more information about this class.
@ -75,15 +75,15 @@ action group will be added to an IntelliJ menu that is only enabled for editing.
#### 2.2.1. Extending DefaultActionGroup #### 2.2.1. Extending DefaultActionGroup
[DefaultActionGroup.java](upsource:///platform/platform-api/src/com/intellij/openapi/actionSystem/DefaultActionGroup.java) [DefaultActionGroup](upsource:///platform/platform-api/src/com/intellij/openapi/actionSystem/DefaultActionGroup.java)
is an implementation of is an implementation of
[ActionGroup.java](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionGroup.java). [ActionGroup](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionGroup.java).
The `DefaultActionGroup` class is used to add child actions and separators between them to a group. The `DefaultActionGroup` class is used to add child actions and separators between them to a group.
This class is used if a set of actions belonging to the group does not change at runtime, which is the majority of all the cases. This class is used if a set of actions belonging to the group does not change at runtime, which is the majority of all the cases.
(See section 2.3 for groups with variable child actions at runtime.) (See section 2.3 for groups with variable child actions at runtime.)
As an example we will extend As an example we will extend
[DefaultActionGroup.java](upsource:///platform/platform-api/src/com/intellij/openapi/actionSystem/DefaultActionGroup.java) [DefaultActionGroup](upsource:///platform/platform-api/src/com/intellij/openapi/actionSystem/DefaultActionGroup.java)
to create the `CustomDefaultActionGroup` class in the `register_actions` code sample: to create the `CustomDefaultActionGroup` class in the `register_actions` code sample:
```java ```java
@ -169,7 +169,7 @@ will also have an icon:
### 2.3. Action groups with a variable actions set ### 2.3. Action groups with a variable actions set
If a set of actions belonging to a custom actions group will vary depending on the context, the group must extend If a set of actions belonging to a custom actions group will vary depending on the context, the group must extend
[ActionGroup.java](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionGroup.java). [ActionGroup](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionGroup.java).
In this case set of actions to be grouped are dynamically defined. In this case set of actions to be grouped are dynamically defined.
#### 2.3.1. Creating variable action group #### 2.3.1. Creating variable action group