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

Bug 337266

Summary: Only auto-focus views when there is a context
Product: z_Archived Reporter: Shawn Minto <shawn.minto>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: cpuidle, mik.kersten, steffen.pingel
Version: unspecifiedKeywords: noteworthy
Target Milestone: 3.5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 172580    
Attachments:
Description Flags
patch none

Description Shawn Minto CLA 2011-02-15 18:38:30 EST
It is a common problem that users have problems when they activate a task for the first time since their navigator views no longer show their files and projects.  We should consider improving this by only focusing views when the user already has a context associated with their task.
Comment 1 Shawn Minto CLA 2011-02-15 18:40:20 EST
Created attachment 189063 [details]
patch

Here is a patch that does this.  I have committed this so that we can see what we think of it before the release.
Comment 2 Sam Davis CLA 2011-02-16 18:50:48 EST
Does this mean that when a new task is created, the views will never autofocus unless the task is deactivated and reactivated?
Comment 3 Shawn Minto CLA 2011-02-16 23:02:14 EST
Yes, that is what this change means.  For users that are used to focusing, this could be a bit confusing, but hopefully it will help new users get over the "hump" of the empty context problems.
Comment 4 Sam Davis CLA 2011-02-16 23:03:46 EST
Won't it mean that new users might never "discover" focussed mode?
Comment 5 Sam Davis CLA 2011-02-16 23:04:24 EST
I always thought the right thing to do here would be to auto focus once there are a certain number of elements in the context.
Comment 6 Sam Davis CLA 2011-02-16 23:20:24 EST
A perhaps even better but much harder thing to do would be to have the views show as focussed as soon as a task is activated (i.e. the button appears depressed), but start out in a special mode where initially everything is visible, and then the set of visible things shrinks gradually until it is just your context. I'm imagining a workflow roughly like this:

# I activate a task, everything is visible
# I click a few things, and Mylyn shows me my context plus a set of say 25 projects that are most closely related to those things (based on previously active task contexts, wheighted by how recently they were active)
# After some more interaction, the set of relelated projects is reduced to say 10, and maybe the most interesting elements within those projects become visible (again based on past tasks)
# Finally, once my context is big enough, Mylyn drops into its usual mode and just shows me the context

This is related: 172580: [context] improve UI experience after activating a new task
https://bugs.eclipse.org/bugs/show_bug.cgi?id=172580
Comment 7 Sam Davis CLA 2011-02-16 23:57:16 EST
The current solution, and my suggestion to autofocus when the context reaches a certain size, have the problem that there is no longer the "empty context" message displayed in the pacakge explorer, so users might have an even harder time understanding what happened. Perhaps there should be a "Where did my files go?" hyperlink displayed when a task is first focussed that would open an explanation. Or else we could add a tooltip to the package explorer explaining that it is now in focussed mode.
Comment 8 Steffen Pingel CLA 2011-02-23 16:06:12 EST
*** Bug 337941 has been marked as a duplicate of this bug. ***
Comment 9 Steffen Pingel CLA 2011-02-27 15:16:44 EST
Sam, your suggestions are *very* valuable and I think we should try that for the next release. It would be great if you could summarize/repost your suggestions on bug 172580 so they don't get lost.

I'll mark this resolved since this is now in head.
Comment 10 Sam Davis CLA 2011-02-28 12:22:02 EST
Thanks Steffen! I have reposted them.