Add an action buttons to my custom tool window
Answered
Hi, I want to add action buttons to my custom tool window, like gradle tool window for example:
Are there any instructions or a clear example of how to do it?
Thanks!
Please sign in to leave a comment.
Use ActionToolBar, see http://www.jetbrains.org/intellij/sdk/docs/basics/action_system.html#building-ui-from-actions. You can use base class com.intellij.openapi.ui.SimpleToolWindowPanel and call setToolbar.
Thanks, it worked.
I have a follow-up question. I'm trying to make the action toolbar to appear horizontally without a success :|
This is what I've tried:
It looks like this:
Thanks again :)
I found the issue.
The first parameter of the super class (SimpleToolWindow) is boolean vertical.