From 11250f17d238f5d526a08bcb991c8360746ac1cd Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Mon, 10 Mar 2025 15:20:50 +0100 Subject: [PATCH] Fix action-related pages links --- topics/basics/execution/execution.md | 2 +- topics/tutorials/action_system/grouping_action.md | 4 ++-- topics/tutorials/build_system/creating_plugin_project.md | 4 ++-- topics/tutorials/editor_basics/coordinates_system.md | 2 +- topics/tutorials/editor_basics/editor_events.md | 2 +- topics/tutorials/editor_basics/working_with_text.md | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/topics/basics/execution/execution.md b/topics/basics/execution/execution.md index 7f5db94e4..f4465a738 100644 --- a/topics/basics/execution/execution.md +++ b/topics/basics/execution/execution.md @@ -5,7 +5,7 @@ Run profile execution lifecycle and description of APIs used to execute processes. The IntelliJ Platform Execution API allows [running external processes](https://www.jetbrains.com/help/idea/running-applications.html) from within the IDE, e.g., applications, tests, servers, scripts, etc. -These processes can be run from the [editor](editors.md), [project view](project_view.md), run toolbar, or custom [actions](actions_tutorial.md). +These processes can be run from the [editor](editors.md), [project view](project_view.md), run toolbar, or custom [actions](action_system.md). Executed processes can be stopped, restarted, and their output and logs can be viewed in the run console. It is possible to manage and persist [Run Configurations](https://www.jetbrains.com/help/idea/run-debug-configuration.html) from the UI. diff --git a/topics/tutorials/action_system/grouping_action.md b/topics/tutorials/action_system/grouping_action.md index 80ed7635d..ec1d597e2 100644 --- a/topics/tutorials/action_system/grouping_action.md +++ b/topics/tutorials/action_system/grouping_action.md @@ -8,7 +8,7 @@ If an implementation requires several actions, or there are simply too many acti This tutorial demonstrates adding an action to an existing group, creating a new action group, and action groups with a variable number of actions. The sample code discussed in this tutorial is from the code sample [`action_basics`](%gh-sdk-samples-master%/action_basics). -Some content in this tutorial assumes the reader is familiar with the tutorial for [Creating Actions](working_with_custom_actions.md). +Some content in this tutorial assumes the reader is familiar with the [](working_with_custom_actions.md) tutorial. ## Simple Action Groups @@ -40,7 +40,7 @@ See [](action_system.md#registering-actions-in-pluginxml) for more information a The following sample shows how to use an [``](plugin_configuration_file.md#idea-plugin__actions__action__add-to-group) element to place a custom action group relative to an entry in the Tools menu. The attribute `relative-to-action` references the action `id` for `PopupDialogAction`, not a native IntelliJ menu entry. Rather `PopupDialogAction` is defined in the same [`plugin.xml`](%gh-sdk-samples-master%/action_basics/src/main/resources/META-INF/plugin.xml) file. -This group is placed after the single entry for the action `PopupDialogAction`, as defined in the tutorial [Creating Actions](working_with_custom_actions.md#registering-an-action-with-the-new-action-form). +This group is placed after the single entry for the action `PopupDialogAction`, as defined in the [Creating Actions](working_with_custom_actions.md#registering-an-action-with-the-new-action-form) tutorial. ```xml + # Creating a Plugin Gradle Project @@ -183,7 +183,7 @@ Gradle projects are run from the IDE's Gradle Tool window. ### Adding Code to the Project Before running [`my_plugin`](#components-of-a-wizard-generated-gradle-intellij-platform-plugin), some code can be added to provide simple functionality. -See the [Creating Actions](working_with_custom_actions.md) tutorial for step-by-step instructions for adding a menu action. +See the [](working_with_custom_actions.md) tutorial for step-by-step instructions for adding a menu action. ### Executing the Plugin diff --git a/topics/tutorials/editor_basics/coordinates_system.md b/topics/tutorials/editor_basics/coordinates_system.md index 614d5bd7b..43ac06f62 100644 --- a/topics/tutorials/editor_basics/coordinates_system.md +++ b/topics/tutorials/editor_basics/coordinates_system.md @@ -20,7 +20,7 @@ A keyboard shortcut can also initiate the action. The source code for the Java class behind the menu action is [EditorAreaIllustration](%gh-sdk-samples-master%/editor_basics/src/main/java/org/intellij/sdk/editor/EditorAreaIllustration.java). The focus of discussion will be the `EditorAreaIllustration.actionPerformed()` method. -For more information about creating action classes, see the [](actions_tutorial.md), which covers the topic in depth. +For more information about creating action classes, see the [](action_system.md), which covers the topic in depth. ## Caret Positions from the `CaretModel` and `Caret` Objects diff --git a/topics/tutorials/editor_basics/editor_events.md b/topics/tutorials/editor_basics/editor_events.md index 81ffebe65..dd54d67b5 100644 --- a/topics/tutorials/editor_basics/editor_events.md +++ b/topics/tutorials/editor_basics/editor_events.md @@ -22,7 +22,7 @@ The `editor_basics` code sample adds an **Editor Add Caret** menu item to the ed ### Creating the Menu Action Class The source code for the Java action class is [EditorHandlerIllustration](%gh-sdk-samples-master%/editor_basics/src/main/java/org/intellij/sdk/editor/EditorHandlerIllustration.java), a subclass of `AnAction`. -For more information about creating action classes, see the [](actions_tutorial.md), which covers the topic in depth. +For more information about creating action classes, see [](action_system.md), which covers the topic in depth. The `EditorHandlerIllustration` action is registered in the _editor_basic_ [`plugin.xml`](%gh-sdk-samples-master%/editor_basics/src/main/resources/META-INF/plugin.xml) file. Note that this action class is registered to appear on the Editor context menu. diff --git a/topics/tutorials/editor_basics/working_with_text.md b/topics/tutorials/editor_basics/working_with_text.md index dec698dc7..ab4bd5651 100644 --- a/topics/tutorials/editor_basics/working_with_text.md +++ b/topics/tutorials/editor_basics/working_with_text.md @@ -8,7 +8,7 @@ This tutorial shows how to use actions to access a caret placed in a document op Using information about the caret, replace selected text in a document with a string. The approach in this tutorial relies heavily on creating and registering actions. -To review the fundamentals of creating and registering actions, refer to the [](actions_tutorial.md). +To review the fundamentals of creating and registering actions, refer to [](action_system.md) tutorial. Multiple examples are used from the [editor_basics](%gh-sdk-samples-master%/editor_basics) plugin code sample from the IntelliJ Platform SDK. It may be helpful to open that project in an IntelliJ Platform-based IDE, build the project, run it, select some text in the editor, and invoke the **Editor Replace Text** menu item on the editor context menu. @@ -21,7 +21,7 @@ In this example, we access the `Editor` from an action. The source code for the Java class in this example is [EditorIllustrationAction](%gh-sdk-samples-master%/editor_basics/src/main/java/org/intellij/sdk/editor/EditorIllustrationAction.java). To register the action, we must add the corresponding elements to the [``](plugin_configuration_file.md#idea-plugin__actions) section of the plugin configuration file [plugin.xml](%gh-sdk-samples-master%/editor_basics/src/main/resources/META-INF/plugin.xml). -For more information, refer to the [Registering Actions](working_with_custom_actions.md#registering-a-custom-action) section of the Actions Tutorial. +For more information, refer to the [](working_with_custom_actions.md#registering-a-custom-action) section. The `EditorIllustrationAction` action is registered in the group `EditorPopupMenu` so it will be available from the context menu when focus is on the editor: ```xml @@ -38,7 +38,7 @@ The `EditorIllustrationAction` action is registered in the group `EditorPopupMen ## Defining the Menu Action's Visibility To determine conditions by which the action will be visible and available requires `EditorIllustrationAction` to override the `AnAction.update()` method. -For more information, refer to [Extending the Update Method](working_with_custom_actions.md#extending-the-update-method) section of the Actions Tutorial. +For more information, refer to [](action_system.md#overriding-the-anactionupdate-method). To work with a selected part of the text, it's reasonable to make the menu action available only when the following requirements are met: * There is a [`Project`](%gh-ic%/platform/core-api/src/com/intellij/openapi/project/Project.java) object,