Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When using Mylyn in Eclipse, why do task context elements not show up in the navigator view?

Tags:

eclipse

mylyn

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?

like image 852
desau Avatar asked Jul 08 '10 03:07

desau


People also ask

How to Show task List in Eclipse?

Use the Task List to view and manage your tasks. If the task list view is not visible, you can open it by navigating to Window -> Show View -> Other... -> Mylyn -> Task List. The Task List contains both "Local Tasks" and shared repository tasks that are stored in a task repository such as Bugzilla or Trac.

How do I update mylyn eclipse?

Enter the Mylyn update site url: http://download.eclipse.org/mylyn/releases/latest. Additional extension update sites are from the download page.


2 Answers

I don't know if you found a solution for your problem, since this question is quite old, but here is what i just found out. For me the problem only occurs if the "Package Presentation" is set to "Hierarchical". Setting it to "Flat" helps. Sounds like a bug to me and unfortunately i prefer the hierarchical view.

like image 140
raffael Avatar answered Sep 16 '22 20:09

raffael


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.

like image 25
David Shepherd Avatar answered Sep 18 '22 20:09

David Shepherd