Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » MenuContribution to custom Editor toolbar
MenuContribution to custom Editor toolbar [message #606495] Mon, 23 August 2010 11:22
Chris  is currently offline Chris Friend
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
Previous Topic:MenuContribution to custom Editor toolbar
Next Topic:Possible Classpath Issue when Galilieo plugin moved to Helios
Goto Forum:
  


Current Time: Sat Apr 27 00:15:06 GMT 2024

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

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

Back to the top