Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Positioning buttons in the toolbar
Positioning buttons in the toolbar [message #296329] Tue, 20 December 2005 14:26 Go to next message
Eclipse UserFriend
I would like to place my "Export" button right next to the save and print
buttons in the file section of a multipage editor's toolbar.

I'm adding this action from the plugin.xml of plugin A where my target
"my.MultiPageEditor" is in plugin B. From what I have read in the eclipse
help this should be straightforward. Utilize the constants defined in
IWorkbenchActionContstants such as
toolbarPath="org.eclipse.ui.workbench.file/save.group".

However no matter what I set the toolbarPath to it always gets appended to
the end of the toolbar menu. Am I doing something fundementally
incorrect? Any ideas?

Straight out of my plugin.xml...
<extension
point="org.eclipse.ui.editorActions">
<editorContribution
targetID="my.MultiPageEditor"
id="my.export.action">
<action id="my.export.action"
label="%export.action.label"
tooltip="%export.action.tooltip"
icon="icons/export.gif"
toolbarPath="org.eclipse.ui.workbench.file/save.group"
class="my.ExportAction">
</action>
</editorContribution>
</extension>

Thanks for the help.
Justin
Re: Positioning buttons in the toolbar [message #296776 is a reply to message #296329] Tue, 03 January 2006 08:39 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure, but it might be:
group.file/save.group

Check out WorkbenchActionBuilder

Later,
PW
Re: Positioning buttons in the toolbar [message #297011 is a reply to message #296329] Fri, 06 January 2006 11:03 Go to previous message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Justin Coughlin wrote:
> I would like to place my "Export" button right next to the save and print
> buttons in the file section of a multipage editor's toolbar.

> toolbarPath="org.eclipse.ui.workbench.file/save.group"

I can't figure out how to get it in the same cool item, but I can get it
close. Try

toolbarPath="save.ext"




cheers,
d.
Previous Topic:How do I delete a (custom) perspective?
Next Topic:What does Eclipse-LazyStart mean?
Goto Forum:
  


Current Time: Wed Sep 24 11:24:20 EDT 2025

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

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

Back to the top