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 Orlandin
Messages: 6
Registered: January 2013
Junior Member
Hi,
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 B
Messages: 129
Registered: July 2009
Senior Member
I'm having a similar problem; which is caused by this bugs:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=392457
https://bugs.eclipse.org/bugs/show_bug.cgi?id=413214
https://bugs.eclipse.org/bugs/show_bug.cgi?id=427475
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: Tue Sep 30 18:10:55 GMT 2014

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

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