Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » removing GMF toolbar
removing GMF toolbar [message #1722948] Wed, 10 February 2016 12:55
Mana Taghdiri is currently offline Mana TaghdiriFriend
Messages: 4
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
Previous Topic:Grid problem on Linux
Next Topic:How to display the referenced element of a connection as a label in GMF
Goto Forum:
  


Current Time: Fri Aug 18 07:15:29 GMT 2017

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

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