Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e41dd7

Browse files
author
breandan
committedDec 2, 2015
Add missing image and update formatting
1 parent 2d00058 commit 2e41dd7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
 
Loading

‎user_interface_components/tool_windows.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If closing tabs is enabled in general, you can disable closing of specific tabs
6565

6666
## How to Create a Tool Window?
6767

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.
6969

7070
To create a tool window, first declare an extension to the _toolWindow_ extension point.
7171

@@ -75,8 +75,8 @@ To create a plugin that displays a custom tool window, perform the following ste
7575

7676
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.
7777
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:
8080
- **id** (required): specifies the tool window caption.
8181
- **anchor** (required): specifies the tool window bar where the tool window button will be displayed. Possible values: "left", "right", "top", "bottom."
8282
- **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
8686

8787
To clarify the above procedure, consider the following fragment of the `plugin.xml` file:
8888

89-
&lt;extensions defaultExtensionNs="com.intellij"&gt;
90-
91-
&lt;toolWindow id="My Sample Tool Window" icon="/myPackage/icon.png" anchor="right" factoryClass="myPackage.MyToolWindowFactory"&gt;
92-
93-
&lt;/toolWindow&gt;
94-
&lt;/extensions&gt;
89+
```xml
90+
<extensions defaultExtensionNs="com.intellij">
91+
<toolWindow id="My Sample Tool Window" icon="/myPackage/icon.png" anchor="right" factoryClass="myPackage.MyToolWindowFactory"/>
92+
</extensions>
93+
```
9594

9695
### Sample Plugin
9796

0 commit comments

Comments
 (0)
Please sign in to comment.