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

Bug 370049

Summary: XML editor position should be stored my Mylyn and restored at task activation
Product: z_Archived Reporter: Lars Vogel <Lars.Vogel>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: dev+eclipse, Lars.Vogel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lars Vogel CLA 2012-01-28 16:42:49 EST
Mylyn should store the editor position in a file and restore it during task activation.
Comment 1 Édouard Lopez CLA 2012-01-29 13:01:48 EST
Would fancy to have this functionnality, currently it's really annoying to manually restore editors' position.

Version: 3.7.0
Build id: I20110613-1736

Distributor ID: Ubuntu
Description:    Ubuntu 11.10
Release:        11.10
Codename:       oneiric

Linux 3.0.0-15-generic #25-Ubuntu SMP Mon Jan 2 17:44:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Comment 2 Steffen Pingel CLA 2012-03-08 12:54:32 EST
Are you referring to the editor position within the workbench window or the cursor position? The latter is supported for editors that persist that state (e.g. Java editor, text editor). Editors need to implement IPersistableEditor to provide this functionality.
Comment 3 Lars Vogel CLA 2012-03-08 16:26:16 EST
I guess you depend on Bug 373094
Comment 4 Steffen Pingel CLA 2012-03-11 10:52:47 EDT
This bug looks like a duplicate of  bug 373094 and bug 166644 or this there anything specific that is not covered on those two bugs, yet?
Comment 5 Lars Vogel CLA 2012-03-12 04:37:04 EDT
If the XML editor stores its caret position, is there anything Mylyn need to do to restore it?
Comment 6 Steffen Pingel CLA 2012-03-12 06:06:19 EDT
(In reply to comment #5)
> If the XML editor stores its caret position, is there anything Mylyn need to do
> to restore it?

Once the XML editor stores that state using IPersistableEditor this will start working with Mylyn. We don't have any specific support for particular editor types.
Comment 7 Lars Vogel CLA 2012-03-12 06:10:19 EDT
I guess in this case you can close this one.
Comment 8 Steffen Pingel CLA 2012-03-12 06:30:07 EDT
Thanks. This will start working once bug 373094 is resolved.

*** This bug has been marked as a duplicate of bug 373094 ***