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
Please sign in to leave a comment.
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.
Excellent, this works. Thank you