How to remove actions from toolbar of Navigator? [message #661153] |
Wed, 23 March 2011 11:50 |
|
Hi,
in my RCP app I used Common Navigator Framework to implement a model navigator view; now I need to remove the usual controls appearing in the view toolbar: Collapse All, Link with Editor and View menu: any idea about this?
Thank you,
Giovanni.
|
|
|
Re: How to remove actions from toolbar of Navigator? [message #661340 is a reply to message #661153] |
Thu, 24 March 2011 10:22 |
|
I found the solution, hope this helps:
In my View extending CommonNavigator I overrode the protected ActionGroup createCommonActionGroup(), returning a personal implementation of ActionGroup; in that class, I overrode the fillActionBars method:
@Override
public void fillActionBars(IActionBars actionBars) {
IToolBarManager toolBar = actionBars.getToolBarManager();
IMenuManager menuMgr = actionBars.getMenuManager();
toolBar.removeAll();
menuMgr.removeAll();
}
this do the trick.
Bye,
Giovanni
|
|
|
|
Powered by
FUDForum. Page generated in 0.03394 seconds