Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to position toolbar button in the main toolbar
how to position toolbar button in the main toolbar [message #326238] Wed, 12 March 2008 15:21 Go to next message
Marko Klopcic is currently offline Marko KlopcicFriend
Messages: 16
Registered: July 2009
Junior Member
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
Re: how to position toolbar button in the main toolbar [message #326241 is a reply to message #326238] Wed, 12 March 2008 17:32 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That looks like a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=222447

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: how to position toolbar button in the main toolbar [message #326253 is a reply to message #326241] Thu, 13 March 2008 09:07 Go to previous message
Marko Klopcic is currently offline Marko KlopcicFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks. It seems we have the same problem.
Previous Topic:Error marking
Next Topic:Creating a RCP Editor
Goto Forum:
  


Current Time: Sun Jul 07 06:41:29 GMT 2024

Powered by FUDForum. Page generated in 0.03246 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top