Community
Participate
Working Groups
If you start clean then the Outline view will have a view menu drop down but once you open an editor it doesn't... Switching perspectives will bring it back (likely because we re-render the toolbar, causing the code in the RenderedToolbarRenderer to put it back...perhaps we can change the pagebook's update logic to do the same ?
Created attachment 174808 [details] force the pagebooks to re-render, adding the view menu This is a patch in progress, not ready for review...
Created attachment 174844 [details] Revised version of previous patch This changes ActionBars to use the same logic as the LSR to refresh the TB, causing the view dropdown to get re-added...
Created attachment 174847 [details] Revised patch that also forces a layout after a perspective switch The CTF wasn't doing a layout on perspective switches, sometimes causing the TB to 'disappear' if it was 'wrapped' onto the second line...
I think that's what is necessary to bridge a 3.x update to an e4 renderer. Just to be safe, after Control tbCtrl = tbm.getControl(); you should add a null check. PW
- remove parentContext null check - after null check in ActionBars, use field directly instead of getter - check control for null and disposed - tbModel != null should be tbModel instanceof MRenderedToolBar - do we need null checks like part.getContext()!=null and renderer != null?
Created attachment 174867 [details] Revised patch nased on Boris' comments
Committed in >20100721. Applied the patch.
The latest patch still has calls to getToolbarManager() instead of using the field directly. Also, there should be a check that "renderer" is not null.
Eric, can you make the changes and then set the bug to fixed again? Thanks.
(In reply to comment #9) > Eric, can you make the changes and then set the bug to fixed again? Thanks. Made these changes and checked them in.
Verified on XP in I20100726-2152.