문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top