mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
tool_windows.md: localization (IJSDK-920)
This commit is contained in:
parent
1c9ef74900
commit
c71bc92978
@ -41,7 +41,9 @@ If the tool window of a plugin doesn't need to be displayed for all projects:
|
||||
See [Creation of Plugin](#creation-of-plugin) for more information.
|
||||
|
||||
Note the condition is evaluated only once when the project is loaded; to show and hide a tool window dynamically while the user is working with the project use the second method for tool window registration.
|
||||
|
||||
|
||||
To provide a localized text for the tool window button, specify matching `toolwindow.stripe.[id]` message key (escape spaces with `_`) in your [message bundle](/reference_guide/localization_guide.md) (code insight supported in 2020.3 and later).
|
||||
|
||||
### Programmatic Setup
|
||||
|
||||
The second method involves simply calling [`ToolWindowManager.registerToolWindow()`](upsource:///platform/platform-api/src/com/intellij/openapi/wm/ToolWindowManager.kt) from the plugin code.
|
||||
|
Loading…
x
Reference in New Issue
Block a user