Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 164421 - Task stays active after switching Eclipse workspace
Summary: Task stays active after switching Eclipse workspace
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 130658
Blocks:
  Show dependency tree
 
Reported: 2006-11-14 00:02 EST by Eugene Kuleshov CLA
Modified: 2007-04-09 21:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2006-11-14 00:02:58 EST
Task stays active after switching Eclipse workspace if both workspaces share the same .mylar folder. This is quite critical, because projects may disappear, or even worse, workspace has completely different projects under the same names. It probably would be better if active task saved info within workspace data.
Comment 1 Mik Kersten CLA 2006-11-14 12:41:42 EST
I don't see how this is critical because it does not cause any damage to the Task List, contexts, or workspace, nor does it cause any crashes.  Our entire architecture currently relies on the task activation data being stored in the task list, and this is where we get our history list as well as task timings.  But I agree that we have a problem with the current story of sharing Mylar across workspaces (bug 130658).  We need to wait for progress on Platform bug 154097 to figure out how to best resolve that.

The current work-around for this particular problem is to deactivate the active task before switching workspaces.  Btw, could you mention more about your use case for switching workspaces?
Comment 2 Eugene Kuleshov CLA 2006-11-14 12:44:54 EST
You can't rely on users remembering things like deactivate tasks before doing something. It is critical because task view may not be in focus, so it is easy to screw task context after switching workspace.
Comment 3 Willian Mitsuda CLA 2006-11-14 13:50:28 EST
Is there any problem in activating a task in a workspace with whose projects doesn't belong to it? i.e. there can be some type of "damage" to the context data?
Comment 4 Eugene Kuleshov CLA 2006-11-14 14:15:17 EST
Activating is not a problem. The problem is that context will be updated with unrelated events.
Comment 5 Mik Kersten CLA 2007-04-09 21:47:25 EDT
Our current model is that the active task is saved with the Task List, note with the workspace.  The benefit of this is that importing task data or switching workspaces preserves the exact state that the task list was left in, including the active task.  I believe that more users would complain if they imported or switched workspaces and their active task was not preserved.  However, this is a design decision that could be revisited with more input.