Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dynamic Toolbar on E4
icon8.gif  Dynamic Toolbar on E4 [message #1383982] Tue, 27 May 2014 16:02 Go to next message
Marco Orlandin is currently offline Marco OrlandinFriend
Messages: 6
Registered: January 2013
Junior Member
I'm porting an application from eclipse 3 to eclipse 4 and the main problem now is with the toolbars. The toolbars should be visible or not depending by the element selected in the editor (not only the type, but many other check).
The toolbars are contributed on the org.eclipse.ui.menus extension point with many children toolbar elements and then one or more control elements. This control must extends WorkbenchWindowControlContribution.
The problem is that on eclipse 3.8 the isVisible method of the controls is called to know if the control is visible and then call the method createControls. In eclipse 4 the method createControls is called directly.
I tought i must use the visibleWhen on the control but i don't know how to set something like "call this method to check if this element is visible" and evaluate it everytime the selection change.
Re: Dynamic Toolbar on E4 [message #1385505 is a reply to message #1383982] Sat, 07 June 2014 19:28 Go to previous message
Al B is currently offline Al BFriend
Messages: 130
Registered: July 2009
Senior Member
I'm having a similar problem; which is caused by this bugs:
Previous Topic: Exception thrown if Part is closed PartStack within Area
Next Topic:How can I make a muli-line header in TableViewer or Table.
Goto Forum:

Current Time: Mon Jun 18 07:59:25 GMT 2018

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

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

Back to the top