MenuContribution to custom Editor toolbar [message #606495] |
Mon, 23 August 2010 11:22 |
Chris Messages: 44 Registered: April 2010 |
Member |
|
|
Hi,
currently I'm trying to place a button at the end of my editor toolbar. The tooltip on the Extension page for the locationURI states, that it could be set to the id of my editor . Well, that does not work.
The toolbar is set up by an ActionBarContributor and contains undo/redo and zoom actions (it is an GEF editor).
public void contributeToToolBar(IToolBarManager toolBarManager) {
super.contributeToToolBar(toolBarManager);
toolBarManager.add(getAction(ActionFactory.UNDO.getId()));
toolBarManager.add(getAction(ActionFactory.REDO.getId()));
toolBarManager.add(new Separator());
toolBarManager.add(new ZoomComboContributionItem(getPage()));
}
The closest thing I could achieve was to place the Button at the end of the navigation toolbar with
locationURI = "toolbar:org.eclipse.ui.workbench.navigate"
Is there a way to do this the "new/right" way via XML and commands (e.g. give the toolbaran locationURI in the "contributeToToolBar" code), or do I have to stick with setting up actions in the ActionBarContributor?
Regards,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.02877 seconds