Contributing editor actions to specific place in the toolbar [message #512915] |
Mon, 08 February 2010 05:59  |
Eclipse User |
|
|
|
Hi,
I have problems with placing editor contributions at specified place in the toolbar. Here is toolbar definition:
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar">
<toolbar
id="toolbar.1file">
<command
commandId="de.ids.acos.et.client.app.commands.NewProject"
icon="icons/createNewModel.gif"
id="createnewmodel"
label="%NewProject.label"
style="push">
</command>
<command
commandId="de.ids.acos.et.client.app.commands.OpenProject"
icon="icons/open_project.gif"
id="openproject"
label="%OpenProject.label"
style="push">
</command>
<separator
name="additions">
</separator>
.....
And this is editor contribution:
<extension
point="org.eclipse.ui.editorActions">
<editorContribution
id="de.ids.acos.et.client.app.editorContribution"
targetID="de.ids.ctrlc.primary.ui.editors.GenericEditor">
<action
class="de.ids.acos.et.client.ui.eclipse.actions.EditorApplyAction "
definitionId="org.eclipse.ui.file.save"
icon="icons/disc.gif"
id="de.ids.acos.et.client.actions.EditorApplyAction"
label="%ApplyEditor.label"
menubarPath="file/seperator"
toolbarPath="toolbar.1file/additions"
tooltip="%ApplyEditor.label">
</action>
......
</editorContribution>
</extension>
As you can see, I'm trying to put EditorApply(save) action at the toolbar by specifying path 'toolbar1.file/additions'. The same action is contributed to the 'File' menu without problems, but doesn't appear in the toolbar at the specified path, rather showing to the right of all toolbars as a separate toolbar with editor contributed actions. I'm pretty sure I'm missing something, can you enlighten me?
Thanks in advance,
Stanislav
|
|
|
|
Powered by
FUDForum. Page generated in 0.03328 seconds