Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to hide the view menu in legacy view parts
How to hide the view menu in legacy view parts [message #661713] Sat, 26 March 2011 15:44 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi once again, I think about removing the view menu from all of my views (that are still legacy through compat layer). Can anyone give me a pointer to a simple hack how to get rid of the view menu (I still need the toolbar though).

Any hint would be appreciated.
Re: How to hide the view menu in legacy view parts [message #661931 is a reply to message #661713] Mon, 28 March 2011 14:31 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In 4.1 M6 it's the ToolBarManagerRenderer that's actually rendering the
view menu button.
org.eclipse.e4.ui.workbench.renderers.swt.ToolBarManagerRend erer.setupMenuButton(MToolBar,

The implication is that if you remove that view menu it should
disappear. We should also be checking the TBR flag (and not create
anything if it is TBR==false)


Paul Webster platform.doc.isv/guide/workbench.htm

Previous Topic:Multi-page Editors/Parts in e4?
Next Topic:making a window non-resizable
Goto Forum:

Current Time: Tue Jan 19 13:02:13 GMT 2021

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

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

Back to the top