removing GMF toolbar [message #1722948] |
Wed, 10 February 2016 12:55 |
Mana Taghdiri Messages: 11 Registered: July 2015 |
Junior Member |
|
|
Hi,
I am working on an eclipse RCP application that has various types of editors. A couple of them are GMF editors, and the other ones are developed by our own programmers. Now we have implemented a ribbon toolbar and I want to completely remove the GMF toolbar. How can I do that?
I have already removed all contribution items using this code in the init method:
public void init(IActionBars bars, IWorkbenchPage page) {
super.init(bars, page);
IToolBarManager toolBarManager = bars.getToolBarManager();
IContributionItem[] items = toolBarManager.getItems();
for (IContributionItem contributionItem : items) {
contributionItem.setVisible(false);
toolBarManager.remove(contributionItem);
bars.updateActionBars();
}
}
but this is not good enough because an empty toolbar is rendered any way, which ruins a small part of our ribbon toolbar.
Is there any way that I can eliminate the GMF toolbar/action bars completely? so they don't get rendered at all?
Thanks,
Mana
|
|
|
Powered by
FUDForum. Page generated in 0.24525 seconds