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

Bug 325282

Summary: Copy Iplog before adding to resource on export
Product: [Technology] Woolsey Reporter: Wayne Beaton <wayne.beaton>
Component: IP Log ToolAssignee: Project Inbox <woolsey-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Wayne Beaton CLA 2010-09-14 14:42:16 EDT
In DefaultIplogExportService, we create a resource, add the Iplog instance to that resource, and then write out the resource. By assigning the "contained" Iplog into the resource, it is removed from the parent DocumentRoot which results in an open editor forgetting about the Iplog.

The Iplog should be copied with EcoreUtils.copy(iplog) before adding to the resource.
Comment 1 Wayne Beaton CLA 2010-09-14 15:39:53 EDT
That was easy. Marking as FIXED.
Comment 2 Wayne Beaton CLA 2010-09-14 15:39:56 EDT
Created attachment 178869 [details]
mylyn/context/zip