| Summary: | NPE thrown when trying to close parts after merging detached stacks | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P3 | CC: | emoffatt, Mike_Wilson | ||||||
| Version: | 1.0 | Flags: | emoffatt:
pmc_approved?
remy.suen: review+ |
||||||
| Target Milestone: | 4.1 RC4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Remy Suen
Created attachment 197804 [details]
Patch to reparent the context of the elements as they get inserted into the new stack
I've tried to make the patch as safe as possible just in case... (In reply to comment #1) > Created attachment 197804 [details] > Patch to reparent the context of the elements as they get inserted into the new > stack I am not sure if the problem is in the DND dropping. Someone could use the model APIs to move the placeholders around and they would expect their parts' contexts to be reparented. I think there is something off in the rendering engine itself? Created attachment 197805 [details]
New patch that fixes the PartRenderingEngine's context handling
The 'parent' check was incorrectly skipping MPlaceholders for which createGui was being called directly.
(In reply to comment #4) > Created attachment 197805 [details] > New patch that fixes the PartRenderingEngine's context handling I can confirm that the problem goes away with this patch. There are still cases where complicated structures will fail to have their child structures' contexts reparented properly. Please open a new bug for the creation of a test for the scenario described by comment 1. I've opened Bug 349085 to track the necessity for creating a test for this... The more complex scenarios I've opened Bug 349086. Mike, another one for you... Committed in >20110610. Applied the patch. Setting milestone... Verified in I20110613-2055. |