| Summary: | Minimizing a previously minimized stack on restart doesn't minimize to trim | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||||
| Component: | UI | Assignee: | Boris Bokowski <bokowski> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | blocker | ||||||||
| Priority: | P3 | CC: | bokowski, emoffatt | ||||||
| Version: | 1.0 | ||||||||
| Target Milestone: | 1.0 RC3 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Remy Suen
If we rollback the change from bug 320243 for the MinMaxAddon so that line 303 goes back from... trimStack.setToBeRendered(true); ...to... trimStack.setVisible(true); ...then the problem goes away. Why that is, I am not quite sure yet. (In reply to comment #1) > If we rollback the change from bug 320243 for the MinMaxAddon Scratch that. My target workspace wasn't setup properly. Created attachment 175103 [details]
MinMaxAddon patch v1
The trim bar is not rendered when the workbench is restored, so asking the trim stack to be rendered does nothing (because its parent hasn't been rendered).
Neither resetting the 'Java' perspective or closing it and reopening it helps. If you try to minimize the view stack after the perspective comes back, it _will_ just disappear. Will look at this tomorrow. +1 the patch looks fine to me (I'd add a ref to this bug so that we can fix this properly (i.e. setting the bar's TBR to true *should* have rendered it)... +1. Patch committed to HEAD. (In reply to comment #6) > (i.e. setting the bar's TBR to true *should* have rendered it)... Opened bug 320816 for this. I believe the TBR was set to false by the clean-up addon. Re-opening because a new scenario has been found: Clean WS, minimize Outline, *reset* the perspective shutdown / restart minimize the Outline again...it disappears The difference is that in the 'reset' case we end going through the code path that creates/adds the trimstack rather than the one that 'found' it. Created attachment 175225 [details]
Patch that duplicates the fix from the previous patch for this case
Note that the correct fix for this would be to change the PRE to handle the TrimBar's TBR correctly (which will involve fixing WBWRenderer's 'getUIContainer' code. (In reply to comment #10) > Created an attachment (id=175225) [details] > Patch that duplicates the fix from the previous patch for this case Looks good to me. (In reply to comment #11) > Note that the correct fix for this would be to change the PRE to handle the > TrimBar's TBR correctly (which will involve fixing WBWRenderer's > 'getUIContainer' code. Indeed, this particular case would not have manifested itself if we didn't have bug 320816. +1 for "Patch that duplicates the fix from the previous patch" Committed in >20100726. Applied the patch. Re-marking as FIXED. Works on XP in I20100726-2152... |