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

Bug 163839

Summary: ensure that editors opened as a result of task activation match those when closed
Product: z_Archived Reporter: Lubos Pochman <pochmans>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Lubos Pochman CLA 2006-11-08 13:21:20 EST
I have 3 java editors open in Mylar context with selected task.
I exit Eclipse and start it again.
After startup, two more java editors are opened and files seems to be random (but always from the same project).
Comment 1 Lubos Pochman CLA 2006-11-08 13:23:38 EST
And I also noticed, that some of the original (3) java editors is NOT opened after restart.
Comment 2 Mik Kersten CLA 2006-11-08 19:29:08 EST
Do you have auto-editor closing turned on?  On the activation of task context Mylar will open the editors needed to show the files in the task context, so that may be what you are seeing.  Please try deactivating the task, activating it, note the number of editors, then restart and let me know if there are more, and if there are, whether the corresponding files show up in the Package Explorer with the "Focus.." button applied.
Comment 3 Lubos Pochman CLA 2006-11-09 10:04:10 EST
I do not have auto-editor closing turned on, should I?
I might understand that some editors are not opened (not intuitive, I would prefer same set of editors I seen the last time),
but what is bad is that it randomly opens other editors, even files that were never open in this task context (or any other task context).
I would argue that is serious problem (probably the biggest I have seen with 0.8 so far). It is not malicious, but it is annoying.
I think that Mylar should be predictable in this area. If you had three editors A,B,C opened in the task context, after you restart eclipse
or deactivate/activate the task, you should get the same three editors A,B,C.
Comment 4 Lubos Pochman CLA 2006-11-09 10:11:01 EST
OK, just tried to activate/deactivate tasks and the same problem happens during active task switching (but not always).
For example I have 4 editors opened. I close 2 of them, switch to another task and then switch back, and the previously closed
editors are opened again (but when I do the same one more time they are not opened any more).
Worse case is that some times it even opens some class editor files (files that do not have .java source), which I might have displayed
some long time ago during debugging.
Comment 5 Mik Kersten CLA 2006-11-20 20:17:36 EST
Could you please provide minimal steps to reproduce?  I can not reproduce opening an editor that does not correspond to an interesting file when activating.
Comment 6 Lubos Pochman CLA 2006-11-21 11:18:10 EST
It happens to me relatively often, but not all the time. As I said before, I believe that Mylar should be predictable in this area. If you had three editors
A,B,C opened in the task context, after you restart eclipse
or deactivate/activate the task, you should get the same three editors A,B,C.
And on top of it I sometimes see editors with files from other projects, than the tasks was addressing (never opened in that context).
I think all this would be resolved by Mylar keeping the open editors context on task switch and predictably restore the same set of editors.
Comment 7 Mik Kersten CLA 2006-12-04 18:43:59 EST

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