Add Action To End Of Toolbar Group [message #313191] |
Tue, 06 March 2007 19:53 |
Eclipse User |
|
|
|
Originally posted by: jwhitlock.collab.net
Hi All,
I am currently working on adding an "Expand All" button to the
Synchronize view for Subclipse. Here is the issue so you can see the
patch I've created thus far:
http://subclipse.tigris.org/issues/show_bug.cgi?id=591
Basically, I have followed the org.eclipse.team.ui approach by creating a
SynchronizePageActionGroup and running
ISynchronizePageConfiguration.addActionContribution(myAction Group). The
problem is that my toolbar contribution is added before the other toolbar
contributions instead of at the end. How can I add a toolbar contribution
to a particular location or at least to the end of the toolbar group?
Here is more code:
/*
* (non-Javadoc)
* @see
org.eclipse.team.ui.synchronize.SynchronizePageActionGroup#f illActionBars(org.eclipse.ui.IActionBars)
*/
public void fillActionBars(IActionBars actionBars) {
IToolBarManager manager = actionBars.getToolBarManager();
appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP,
expandAllAction);
}
Take care,
Jeremy
|
|
|
Powered by
FUDForum. Page generated in 0.02933 seconds