tool_window code sample: Update README.md

This commit is contained in:
Karol Lewandowski 2023-04-11 16:18:07 +02:00
parent 01b4a153c1
commit b5db6e8570

View File

@ -7,13 +7,13 @@ Tool Windows are child windows of the IDE used to display information.
These windows generally have their toolbars (referred to as tool window bars) along the outer edges of the main window containing one or more tool window buttons, which activate panels displayed on the left, bottom, and right sides of the main IDE window.
The current implementation displays a `JPanel` component containing simple icons and information about the actual system date, time, and timezone.
Component is provided by the `MyToolWindow` class through the `getContent()` method invoked inside the `MyToolWindowFactory` implementation.
Component is provided by the `CalendarToolWindowFactory.CalendarToolWindowContent` class through the `getContentPanel()` method invoked inside the `CalendarToolWindowFactory` implementation.
### Extension Points
| Name | Implementation | Extension Point Class |
|---------------------------|-------------------------------------------------|-----------------------|
| `com.intellij.toolWindow` | [MyToolWindowFactory][file:MyToolWindowFactory] | `ToolWindowFactory` |
|---------------------------|-------------------------------------------------------------|-----------------------|
| `com.intellij.toolWindow` | [CalendarToolWindowFactory][file:CalendarToolWindowFactory] | `ToolWindowFactory` |
*Reference: [Plugin Extension Points in IntelliJ SDK Docs][docs:ep]*
@ -22,4 +22,4 @@ Component is provided by the `MyToolWindow` class through the `getContent()` met
[docs:tool_windows]: https://plugins.jetbrains.com/docs/intellij/tool-windows.html
[docs:ep]: https://plugins.jetbrains.com/docs/intellij/plugin-extensions.html
[file:MyToolWindowFactory]: ./src/main/java/org/intellij/sdk/toolWindow/MyToolWindowFactory.java
[file:CalendarToolWindowFactory]: ./src/main/java/org/intellij/sdk/toolWindow/CalendarToolWindowFactory.java