How do I put labels/text on navbar?

Answered

Hi,

I'm trying to display some simple text on the navbar toolbar. A perfect example of what I'm after is something like the label "Git:" on the navbar toolbar, just before the commit actions. 

How can this be done? Any help would be much appreciated.

Thanks,
Alex

0
2 comments

This can be done by implementing `com.intellij.openapi.actionSystem.ex.CustomComponentAction`.
For example, you can extend `com.intellij.openapi.actionSystem.ex.ToolbarLabelAction`, as VcsToolbarLabelAction (that displays "Git:") does.

0

Excellent, this works. Thank you

0

Please sign in to leave a comment.