mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Rename action_system.md to actions_tutorial.md
This commit is contained in:
parent
f71889fe48
commit
676d095f6f
2
ijs.tree
2
ijs.tree
@ -101,7 +101,7 @@
|
||||
<toc-element topic="themes_metadata.md"/>
|
||||
</toc-element>
|
||||
<toc-element topic="basic_action_system.md" accepts-web-file-names="action_system.html">
|
||||
<toc-element topic="action_system.md">
|
||||
<toc-element topic="actions_tutorial.md" accepts-web-file-names="action-system.html">
|
||||
<toc-element topic="working_with_custom_actions.md"/>
|
||||
<toc-element topic="grouping_action.md"/>
|
||||
</toc-element>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# Execution
|
||||
|
||||
<link-summary>Run profile execution lifecycle and description of APIs used to execute processes.</link-summary>
|
||||
|
||||
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](action_system.md).
|
||||
These processes can be run from the [editor](editors.md), [project view](project_view.md), run toolbar, or custom [actions](actions_tutorial.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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# 2. Editor Coordinates System. Positions and Offsets
|
||||
|
||||
@ -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](action_system.md), which covers the topic in depth.
|
||||
For more information about creating action classes, see the [](actions_tutorial.md), which covers the topic in depth.
|
||||
|
||||
## Caret Positions from the `CaretModel` and `Caret` Objects
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# 3. Handling Editor Events
|
||||
|
||||
@ -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](action_system.md), which covers the topic in depth.
|
||||
For more information about creating action classes, see the [](actions_tutorial.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.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# 1. Working with Text
|
||||
|
||||
@ -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](action_system.md).
|
||||
To review the fundamentals of creating and registering actions, refer to the [](actions_tutorial.md).
|
||||
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user