Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325282 - Copy Iplog before adding to resource on export
Summary: Copy Iplog before adding to resource on export
Status: RESOLVED FIXED
Alias: None
Product: Woolsey
Classification: Technology
Component: IP Log Tool (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 14:42 EDT by Wayne Beaton CLA
Modified: 2010-09-14 15:39 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (2.27 KB, application/octet-stream)
2010-09-14 15:39 EDT, Wayne Beaton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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