| Summary: | Reattaching a detached stack with multiple views will cause part disposal | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | Eric Moffatt <emoffatt> | ||||||||
| Severity: | critical | ||||||||||
| Priority: | P3 | CC: | pwebster | ||||||||
| Version: | 1.0 | Flags: | remy.suen:
review+
|
||||||||
| Target Milestone: | 4.1 RC4 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Remy Suen
Created attachment 197319 [details] When reparenting a widget in createGui also reparent the contexts This also fixes bug 348200 & bug 348209, perhaps we should mark them DUPS of this one... I chose this bug to own the patch since the others are just manifestations of the context disposal... The root cause is that parts discreetly dragged into the DW (or opened in the DW) had their 'parentContext' set to the DW's MTrimmedWindow's context which was correctly getting disposed after the stack was dragged out of it... (In reply to comment #1) > Created attachment 197319 [details] > When reparenting a widget in createGui also reparent the contexts This patch won't work if you try to move a nested structure that's two or more levels deep (remove a part sash container with a part stack with a part and then add it back to the main window). The bugs that have been reported do get fixed though because all those moves are only one level deep (a part stack with parts is moved). Please open a new bug so that that failure case can be fixed in 4.2. Created attachment 197320 [details]
Tests patch
Both these tests fail without the original patch and succeed with it...
I've added bug 348250 to capture need to revisit this in 4.2. (In reply to comment #3) > Created attachment 197320 [details] > Tests patch Confirmed that the tests fail without the patch and pass with the patch applied. Created attachment 197321 [details]
Revised patch that tests for direct part reparenting as well
Committed in >20110603. Applied both the patches. *** Bug 348209 has been marked as a duplicate of this bug. *** Verified in I20110604-2201 |