how to position toolbar button in the main toolbar [message #326238] |
Wed, 12 March 2008 11:21  |
Eclipse User |
|
|
|
Hi,
I'm writing a simple plugin for Eclipse 3.3.1.1, which is using commands
for workbench extension instead of actionSet. I created a plug-in
project using "Hello, World Command" template. Here is the snippet
from plugin.xml defining toolbar item:
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions ">
<toolbar
id="MyPlugin.toolbars.sampleToolbar">
<command
commandId="MyPlugin.commands.sampleCommand"
icon="icons/sample.gif"
tooltip="Say hello world"
id="MyPlugin.toolbars.sampleCommand">
</command>
</toolbar>
</menuContribution>
According to documentation 'locationURI' defines position of toolbar
button.
However, I'm not able to change this position. For example, if I replace
'additions' with 'group.file' or 'group.help' the button shows up on the
left
side of the toolbar.
Any hints?
Greetings,
Marko
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02324 seconds