cdmihai
cdmihai

Reputation: 3028

How to add an icon to the IntelliJ status bar

I am writing an IntelliJ plugin and I want to add an icon to the status bar showing that the plugin is running (branding reasons).

From what I figured out, I need to create an action in plugin.xml and specify that it should be in the status bar group:

<action id="MyAction" class="ActionClass" icon="icons/icon.png">
<add-to-group group-id="???" />
</action>

The only problem is that I cannot find the group-id string for the status bar.

Is this the right way to add an icon there? If yes, where can I find the group-id string for the status bar?

Thanks

Upvotes: 1

Views: 1605

Answers (1)

Peter Gromov
Peter Gromov

Reputation: 18941

The right way is to implement StatusBarWidget and register it (StatusBar.addWidget). You may look at IntelliJ CE sources for this API usage examples.

Upvotes: 3

Related Questions