[plugin] control the position of a command in the toolbar [message #551624] |
Sun, 08 August 2010 12:37 |
Eclipse User Messages: 34 Registered: July 2010 |
Member |
|
|
Hello
I'm developing a plug-in and I've recently added a command button in the toolbar of eclipse . First I was working with actions and then I've been told that it's preferable to work with commands .
The problem is that I want my command to be placed in the group of ( debug, run , run last tool ) specifically at the end . I managed to do this with actions using this path :
Quote: |
toolbarPath="org.eclipse.debug.ui.launchActionSet/debug"
|
I really don't know the equivalent of this path when working with commands
here is the code for the addition of the command :
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar">
<toolbar
id="org.eclipse.debug.ui.launchActionSet">
</toolbar>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.debug.ui.launchActionSet">
<command
commandId="id"
icon="icons/.....png"
label="label"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="idHandler"
id="id"
name="name">
</command>
</extension>
I want also to do the same thing for the Run menu and I have the same problem for the location .
Quote: | menubarPath="org.eclipse.ui.run/relaunchGroup"
|
what are the equivalents for the locationURI of my command ?
Thanks so much for your help
[Updated on: Mon, 09 August 2010 08:30] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03348 seconds