I would like to add a gap between two buttons on an Eclipse toolbar. Both these buttons are defined in the plugin.xml for the plugin. I have tried specifying a separator, as per the following XML snippet, but nothing shows up.
<menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
<command
commandId="com.bogus.filters.menu"
icon="icons/filter.gif"
label="Filter Menu"
style="pulldown"
tooltip="Filter Menu" />
</menuContribution>
<menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
<separator name="com.bogus.separator1" />
</menuContribution>
<menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
<command
commandId="com.bogus.commands.dangerous"
icon="icons/bomb.png"
label="BOOM!"
tooltip="BOOM!" />
</menuContribution>
As a side note, does anyone know where I can find a decent schema definition for the plugin.xml file? This is the best I could find so far, but its poor.
So it turns out the separator element can have a ‘visible’ attribute and this must be set to true.
I found this out by random googling. Still couldn’t find a decent schema definition for the plugin.xml.