Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331047

Summary: Using PartState.CREATE to show a part with EPartService should adjust the placeholder before the rendering request
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
EPartService patch v1 none

Description Remy Suen CLA 2010-11-24 12:25:36 EST
As is, the code will just try to render the part without considering the fact that the part may not be pointing at its local placeholder.

This can cause problems as renderer implementations have a tendency to try to ask the element for its parent or its placeholder. In this case, both methods will return 'null' for a shared part that doesn't have its placeholder adjusted.
Comment 1 Remy Suen CLA 2010-11-24 12:26:59 EST
Created attachment 183784 [details]
EPartService patch v1
Comment 2 Remy Suen CLA 2010-11-24 12:27:26 EST
Fixed in CVS HEAD.