From bfe1f6b814711f7e1a49fc5f9a1afa0d31b1bedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 19 Mar 2025 09:59:58 +0100 Subject: [PATCH] tool_windows.md: cleanup --- topics/user_interface_components/tool_windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/user_interface_components/tool_windows.md b/topics/user_interface_components/tool_windows.md index d23da373b..ac4683a3f 100644 --- a/topics/user_interface_components/tool_windows.md +++ b/topics/user_interface_components/tool_windows.md @@ -74,7 +74,7 @@ To show and hide a tool window dynamically while the user is working with the pr ### Programmatic Setup -For tool windows shown only after invoking specific actions, use [`ToolWindowManager.registerToolWindow(String,RegisterToolWindowTaskBuilder)`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/wm/ToolWindowManager.kt). +For tool windows shown only after invoking specific actions, use [`ToolWindowManager.registerToolWindow(String, RegisterToolWindowTaskBuilder)`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/wm/ToolWindowManager.kt). Always use [`ToolWindowManager.invokeLater()`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/wm/ToolWindowManager.kt) instead of "plain" `Application.invokeLater()` when scheduling EDT tasks related to tool windows (see [](threading_model.md)).