tags:

views:

30

answers:

1

I've been using Eclipse for many years. I'm trying to switch into using Mylyn. I've configured a task and it's automatically added a number of files to the context. So far, so good.

However, when the "Focus on Active Task" button is enabled/depressed (in the Navigator View), many of the files in the task context are hidden -- I cannot find them unless I turn off "Focus on Active Task" -- which sort of defeats the purpose.

Why are items listed in the Context not being shown in the Navigator View?

+1  A: 

It sounds like there are two questions here:

  1. Why are only some files in my context showing when I select "Focus on Active Task"?
  2. How can I view files not in my context when I've selected "Focus on Active Task"?

For item one, Mylyn records every file you touch when working on a task and stores it as part of the task context (see note at end). For large tasks it quickly becomes useless to see every file that you've touched and so Mylyn uses an algorithm to decide which files are most relevant to your task, based on how many times you've viewed and edited them. Thus, when you select "Focus on Active Task" only the most relevant files are shown.

For item two, it is often the case that you'd want to view files that are not shown as part of your context while "Focus on Active Task" is selected, and Mylyn provides a way of doing this. You can view all children files of a visible node by holding down ALT while clicking on that node. The files will become visible temporarily. Similarly, if you do not have any files showing in context you can hold ALT and click in the Package Explorer (or other view of the project) and it will show all files. ALT + clicking is an essential action for anyone who wants to work with their PackageExplorer focused.

The 2.5 minute video Get Task-Focused will help you better understand how focusing the Package Explorer is intended to be used.


David Shepherd
Tasktop Technologies, Inc.

Note: You can see every file that is in your context by opening the task editor, selecting the "Context" tab (at the bottom), and then sliding the "Actions" slider to the left.

David Shepherd
Nope. Absolutely not my question. I understand Mylyn, and I've been using it for a while now. For the most part, it's been working great.My question was this: "why do task context elements not show up in the navigator view."When I go to the task context, these files are _in_the_context_. However, they don't show up in the navigator (unless, of course, I disable "focus on the active task", which defeats the purpose).
desau
Desau,Sorry I misinterpreted your question! Task context elements should show up in the navigator view. If they are not showing up in the navigator view then you are encountering a serious bug. If you can post a concrete example I can try to replicate it, but I am currently working on a task and am viewing relevant files in the Navigator View with no problem. Let me know if you're still having problems.Cheers,Dave
David Shepherd