Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsToolbar icon order
https://www.eclipse.org/forums/index.php/mv/msg/154935/488118/#msg_488118
Sue 2009-09-25T15:32:52-00:00Re: Toolbar icon order
https://www.eclipse.org/forums/index.php/mv/msg/154935/488142/#msg_488142
You must have an known ID to control your placement (either another contribution command or a separator). Otherwise each contribution is simply added to "additions" in plugin order.
You can add invisible named separators to better control your contribution placement if the different plugins don't know their relationship to each other's command contributions.
PW
]]>Paul Webster2009-09-25T16:26:21-00:00Re: Toolbar icon order
https://www.eclipse.org/forums/index.php/mv/msg/154935/488164/#msg_488164
// want to be #1
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions ">
<toolbar id="myToolbarId">
<command
commandId="firstCommand"
icon="icons/myIcon.gif"
id="firstCommandId"
label="First Icon"
style="push"
</command>
</toolbar>
</menuContribution>
// want to be #2
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=firstCommandId ">
<toolbar id="myToolbarId">
<command
commandId="secondCommand"
id="secondCommandId"
icon="icons/myIcon2.gif"
label="Second Icon"
style="push"
</command>
</toolbar>
</menuContribution>
I try to make the first command first, but it always appears after the second one. The second plugin is loaded first.
Do you see anything obvious that I am doing wrong?]]>Sue 2009-09-25T18:01:00-00:00Re: Toolbar icon order
https://www.eclipse.org/forums/index.php/mv/msg/154935/488391/#msg_488391
Otherwise you are trying to add a second toolbar (with the same ID as the first) to the main coolbar after a non-existent ID (since firstCommandId is not in the main coolbar)