| Summary: | [UI] PageBook toolbars lose the view menu drop down on a page change | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Eric Moffatt <emoffatt> |
| Component: | UI | Assignee: | Eric Moffatt <emoffatt> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | bokowski, remy.suen |
| Version: | unspecified | Flags: | pwebster:
review+
emoffatt: review? (bokowski) |
| Target Milestone: | 1.0 RC3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Eric Moffatt
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. |