status_bar_widgets.md: Inline code formatting

This commit is contained in:
Karol Lewandowski 2024-08-06 16:54:38 +02:00
parent e454a368fc
commit 355f3c99e6

View File

@ -51,21 +51,21 @@ Use one of the existing predefined widget appearance options:
Widget with only an icon. Widget with only an icon.
Example: Example:
[PowerSaveStatusWidgetFactory](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PowerSaveStatusWidgetFactory.java) [`PowerSaveStatusWidgetFactory`](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PowerSaveStatusWidgetFactory.java)
- `com.intellij.openapi.wm.StatusBarWidget.TextPresentation` - `com.intellij.openapi.wm.StatusBarWidget.TextPresentation`
Widget with only a text. Widget with only a text.
Example: Example:
[PositionPanel](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.kt) [`PositionPanel`](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/PositionPanel.kt)
- `com.intellij.openapi.wm.StatusBarWidget.MultipleTextValuesPresentation` - `com.intellij.openapi.wm.StatusBarWidget.MultipleTextValuesPresentation`
Widget with a text and a popup. Widget with a text and a popup.
Example: Example:
[DvcsStatusWidget](%gh-ic%/platform/dvcs-impl/src/com/intellij/dvcs/ui/DvcsStatusWidget.java) [`DvcsStatusWidget`](%gh-ic%/platform/dvcs-impl/src/com/intellij/dvcs/ui/DvcsStatusWidget.java)
> Note that they can't be combined to get, for example, an icon and a text. > Note that they can't be combined to get, for example, an icon and a text.
> >
@ -79,7 +79,7 @@ interface.
Override `getComponent()` to return the custom widget's component to display. Override `getComponent()` to return the custom widget's component to display.
Example: Example:
[MemoryUsagePanel](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/MemoryUsagePanel.java) [`MemoryUsagePanel`](%gh-ic%/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/MemoryUsagePanel.java)
## `EditorBasedStatusBarPopup` ## `EditorBasedStatusBarPopup`