Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 275899 - copy editor mementos and last used perspective when context is copied
Summary: copy editor mementos and last used perspective when context is copied
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3   Edit
Assignee: Shawn Minto CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 226618
  Show dependency tree
 
Reported: 2009-05-12 11:50 EDT by Shawn Minto CLA
Modified: 2009-10-07 19:12 EDT (History)
1 user (show)

See Also:


Attachments
patch (4.88 KB, patch)
2009-10-07 19:10 EDT, Shawn Minto CLA
no flags Details | Diff
mylyn/context/zip (2.48 KB, application/octet-stream)
2009-10-07 19:10 EDT, Shawn Minto CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Minto CLA 2009-05-12 11:50:43 EDT
It seems that the open editor mementos should be copied with the context as they are viewed as part of the context.
Comment 1 Shawn Minto CLA 2009-10-07 19:10:45 EDT
Created attachment 149067 [details]
patch

Here is a patch that provides this support without changing where the mementos are stored.
Comment 2 Shawn Minto CLA 2009-10-07 19:10:47 EDT
Created attachment 149068 [details]
mylyn/context/zip
Comment 3 Shawn Minto CLA 2009-10-07 19:11:21 EDT
In the CopyContextHandler, we now copy the editor mementos as well.  This should fit with users expectations better.  I had to move the initialization of the ContextEditorManager to the start() method of the ContextUiPlugin, but I left the listener initialization in the lazy start since we now need the ContextEditorManager even if a context has never been activated.