You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_interface_components/tool_windows.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ If closing tabs is enabled in general, you can disable closing of specific tabs
65
65
66
66
## How to Create a Tool Window?
67
67
68
-
The IntelliJ IDEA core provides the _toolWindow_[extension point](/basics/plugin_structure/plugin_extensions_and_extension_points.md) that you can use to create and configure your custom tool windows. This extension point is declared using the [ToolWindowEP](upsource:///platform/platform-api/src/com/intellij/openapi/wm/ToolWindowEP.java) bean class.
68
+
The IntelliJ Platform provides the _toolWindow_[extension point](/basics/plugin_structure/plugin_extensions_and_extension_points.md) that you can use to create and configure your custom tool windows. This extension point is declared using the [ToolWindowEP](upsource:///platform/platform-api/src/com/intellij/openapi/wm/ToolWindowEP.java) bean class.
69
69
70
70
To create a tool window, first declare an extension to the _toolWindow_ extension point.
71
71
@@ -75,8 +75,8 @@ To create a plugin that displays a custom tool window, perform the following ste
75
75
76
76
1. In your plugin project, create a Java class that implements the [ToolWindowFactory](upsource:///platform/platform-api/src/com/intellij/openapi/wm/ToolWindowFactory.java)interface.
77
77
2. In this class, override the `createToolWindowContent` method. This method specifies the content for your tool window.
78
-
3. In the plugin configuration file plugin.xml, create the _<extensions defaultExtensionNs="com.intellij"></extensions>_ section.
79
-
4. To this section, add the _<toolWindow>_ element, and for this element, set the following attributes declared in the ToolWindowEP bean class:
78
+
3. In the plugin configuration file plugin.xml, create the `<extensions defaultExtensionNs="com.intellij">...</extensions>` section.
79
+
4. To this section, add the `<toolWindow>` element, and for this element, set the following attributes declared in the ToolWindowEP bean class:
80
80
-**id** (required): specifies the tool window caption.
81
81
-**anchor** (required): specifies the tool window bar where the tool window button will be displayed. Possible values: "left", "right", "top", "bottom."
82
82
-**secondary** (optional): when true, the tool window button will be shown on the lower part of the tool window bar. Default value is false.
@@ -86,12 +86,11 @@ To create a plugin that displays a custom tool window, perform the following ste
86
86
87
87
To clarify the above procedure, consider the following fragment of the `plugin.xml` file:
0 commit comments