mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
docs: target 2021.2, regen EP list
This commit is contained in:
parent
5128f22ce9
commit
76b00539d6
@ -27,8 +27,8 @@
|
||||
<noindex-content-in-eap>false</noindex-content-in-eap>
|
||||
<noindex-content-in-release>false</noindex-content-in-release>
|
||||
|
||||
<upsource-commit-hash>17812b1102973a61b8b73ee7fdbea12cf8036cd6</upsource-commit-hash>
|
||||
<upsource-tag>211.7442.40</upsource-tag>
|
||||
<upsource-commit-hash>178c8565735689ec2663b7ed21a7e817a1e368cf</upsource-commit-hash>
|
||||
<upsource-tag>212.4746.92</upsource-tag>
|
||||
<upsource-repo-name>idea-ce</upsource-repo-name>
|
||||
<upsource-server-address>upsource.jetbrains.com</upsource-server-address>
|
||||
<product-web-url>https://plugins.jetbrains.com</product-web-url>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,7 @@ Every IntelliJ Platform action should override `AnAction.update()` and must over
|
||||
* An action's method `AnAction.update()` is called by the IntelliJ Platform framework to update an action state.
|
||||
The state (enabled, visible) of an action determines whether the action is available in the UI of an IDE.
|
||||
An object of the [`AnActionEvent`](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java) type is passed to this method and contains information about the current context for the action.
|
||||
Actions are made available by changing state in the [Presentation](upsource:///platform/platform-api/src/com/intellij/ide/presentation/Presentation.java) object associated with the event context.
|
||||
Actions are made available by changing state in the [`Presentation`](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/Presentation.java) object associated with the event context.
|
||||
As explained in [Overriding the `AnAction.update()` Method](#overriding-the-anactionupdate-method), it is vital `update()` methods _execute quickly_ and return execution to the IntelliJ Platform.
|
||||
* An action's method `AnAction.actionPerformed()` is called by the IntelliJ Platform if available and selected by the user.
|
||||
This method does the heavy lifting for the action - it contains the code executed when the action gets invoked.
|
||||
@ -119,7 +119,7 @@ An action must have a unique identifier for each place it appears in the IDE UI.
|
||||
See the [Action Declaration Reference](#action-declaration-reference) section for information about how to specify locations in the IDE UI.
|
||||
|
||||
#### Presentation
|
||||
A new [`Presentation`](upsource:///platform/platform-api/src/com/intellij/ide/presentation/Presentation.java) gets created for every place where the action appears.
|
||||
A new [`Presentation`](upsource:///platform/editor-ui-api/src/com/intellij/openapi/actionSystem/Presentation.java) gets created for every place where the action appears.
|
||||
Therefore, the same action can have different text or icons when it appears in different places of the user interface.
|
||||
Different presentations for the action are created by copying the Presentation returned by the `AnAction.getTemplatePresentation()` method.
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
The Credentials Store API allows you to store sensitive user data securely, like passwords, server URLs, etc.
|
||||
|
||||
## How to Use
|
||||
Use [`PasswordSafe`](upsource:///platform/platform-api/src/com/intellij/ide/passwordSafe/PasswordSafe.kt) to work with credentials.
|
||||
Use [`PasswordSafe`](upsource:///platform/remote-core/src/ide/passwordSafe/PasswordSafe.kt) to work with credentials.
|
||||
|
||||
_Common Utility Method:_
|
||||
|
||||
|
@ -56,7 +56,7 @@ If the running process uses ANSI escape codes to color its output, the [`Colored
|
||||
Console [filters](upsource:///platform/lang-api/src/com/intellij/execution/filters/Filter.java) allow you to convert certain strings found in the process output to clickable hyperlinks.
|
||||
To attach a filter to the console, use `CommandLineState.addConsoleFilters()` or, if you're creating a console manually, `TextConsoleBuilder.addFilter()`.
|
||||
|
||||
Two common filter implementations you may want to reuse are [`RegexpFilter`](upsource:///platform/lang-api/src/com/intellij/execution/filters/RegexpFilter.java) and [`UrlFilter`](upsource:///platform/lang-api/src/com/intellij/execution/filters/UrlFilter.java).
|
||||
Two common filter implementations you may want to reuse are [`RegexpFilter`](upsource:///platform/lang-api/src/com/intellij/execution/filters/RegexpFilter.java) and [`UrlFilter`](upsource:///platform/execution-impl/src/com/intellij/execution/filters/UrlFilter.java).
|
||||
|
||||
## Starting a Run Configuration from Code
|
||||
|
||||
|
@ -68,7 +68,7 @@ If a custom language contains lazy-parseable elements that never or rarely conta
|
||||
#### Consider Prebuilt Stubs
|
||||
|
||||
If your language has a massive standard library, which is mostly the same for all users, you can avoid stub-indexing it in each installation by providing prebuilt stubs with your distribution.
|
||||
See [`PrebuiltStubsProvider`](upsource:///platform/lang-impl/src/com/intellij/psi/stubs/PrebuiltStubs.kt) extension.
|
||||
See [`PrebuiltStubsProvider`](upsource:///platform/indexing-impl/src/com/intellij/psi/stubs/PrebuiltStubs.kt) extension.
|
||||
|
||||
## Avoiding UI Freezes
|
||||
|
||||
|
@ -63,7 +63,7 @@ object DemoPluginIcons {
|
||||
</tab>
|
||||
</tabs>
|
||||
|
||||
Use these constants inside <path>plugin.xml</path> when specifying `icon` attribute for `<action>` or extension points, as well in [`@Presentation`](upsource:///platform/platform-api/src/com/intellij/ide/presentation/Presentation.java) `icon` attribute.
|
||||
Use these constants inside <path>plugin.xml</path> when specifying `icon` attribute for `<action>` or extension points, as well in [`@Presentation`](upsource:///platform/analysis-api/src/com/intellij/ide/presentation/Presentation.java) `icon` attribute.
|
||||
Note that the package name `icons` will be automatically prefixed and must not be specified.
|
||||
|
||||
```xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user