Community
Participate
Working Groups
I used org.eclipse.ui.menus to add a toolbar with 3 commands and a tool control. I used a visibleWhen (if one IResource is selected) to make the tool control visible. In 3.8 the control (a combo) appears and disappears at the end of that toolbar. In 4.2, an empty space appears and disappears at the end of that toolbar. https://github.com/paulweb515/eclipseExamples/blob/master/org.eclipse.example.commands.toolbar/plugin.xml#L61 This is important as it is one of the patterns we've given to other projects to get away from actionSets and hacking the WorkbenchWindow coolbar (which doesn't exactly exist in 4.2 :-) PW
We put a hook in the PartRenderingEngine to avoid rendering children of a top MMenu, since the MenuManagerRenderer enforces the rendering of the children. The ToolBarRenderer works the same way, but there's no hook in the PRE, and so when the child is added it looks like it is interacting with the hidden shell. Can we talk tomorrow morning about options for fixing this? PW
I've pushed my fix as pwebster/bug374326 Include 3 types of changes: 1. ToolControlContribution doesn't correctly re-fill, because filling is controled by the @PostConstruct method. We should uninject the object on control.dispose and create a new one on fill. 2. push a RAT manager.update(*) outside of the RAT. As any injected object can update the IEclipseContext in its @PostConstruct, we need to be careful 3. remove an MToolControl in an MToolBar from the standard visibility event handlers. This is similar to how children of MMenu are already exempt. PW
I added a test to the pwebster/bug374326 branch.
Released for M7 PW
In I20120430-1800 PW
New Gerrit change created: https://git.eclipse.org/r/53219
Gerrit change https://git.eclipse.org/r/53219 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a15de5497a2492462214c8a05bdb3acc8ce7df76