I can already successfully add a toggle menu item to main IDE menu bar by doing the following in plugin.xml:
where the java class Foo extends ToggleAction.
But now I would like to add a button with a custom icon to the toolbar, not the menu. Is this possible?
Thanks in advanced!