views:

694

answers:

6

Eclipse currently shows the task tags (// TODO) from all open projects. I would be grateful if anyone could point out the preference, where I could restrict the scope of tasks displayed (e.g. only tasks from current project). Thanks!

A: 

AFAIK the Eclipse task list is workspace-based and cannot really be filtered by default.

Uri
The task list can be filtered on all sorts of things, such as working sets.
JesperE
Yes, by working sets, but AFAIK you can't filter it at a project-level.
Uri
+2  A: 

Close projects that you aren't working on. Tasks show for any part of the workspace, so remove projects that you arent working on by doing a close operation.

Karl
That works - thanks for the workaround!
+1  A: 

There should be a down arrow in the top-right with several options in it. For the old Eclipse the option you want is Filters... And for the newer Eclipse the option is now Configure Contents. At the top of the Configure Contents dialog is a scope selection with options you want, I think.. If not check preferences and search for tasks, or scope. It should be in there somewhere.

RayOK
+1  A: 

Configure Contents... can be used to filter to things like working sets (if you're not already using working sets, you should), but yet another way is to use Mylyn to filter out any UI elements not relevant for what you're currently working on.

JesperE
A: 

Filtering by working sets works fine, but I had to put the packages into a working set, rather than the whole project.

A: 

In Eclipse Helios (3.6) you can configure the scope.

Down arrow at the top right -> Configure Contents:

Select a configuration on the left (or create a new one) and on the right in the Scope section select "On any element in same project".

Thiuda