Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Task tags (TODO,...) for java?

Tags:

java

eclipse

task

I wanted to use // TODO tags in order to have a Task list.

I'm using Eclipse Helios, I work on a Java project, and the view I openned is "Tasks", not "Task list". I've checked as well that there is no filter in the "Configure Contents" menu.

But the only Tasks that are listed come from HTML, or JSP files, not my Java classes !

Any ideas ?

PS: Sorry for my english, french people are definitively bad at languages !

Edit: When I write a // TODO task, the flag (the task icon) is well displayed in the left margin. I've installed the following plugins : M2E, PMD, Subclipse, Google plugin, and the precise eclipse version name is Helios Service Release 2, if it can help.

Final edit : Problem solved ! In fact a related project had build path problems. Using maven, i did not saw it ! All my apologies for such a newbie issue. Again, thanks for all those who've tried to help me !

like image 387
Zepcome Avatar asked Jun 24 '11 15:06

Zepcome


People also ask

How do I show todos in eclipse?

Go to Window → Show View → Tasks (Not TaskList). The new view will show up where the "Console" and "Problems" tabs are by default. As mentioned elsewhere, you can see them next to the scroll bar as little blue rectangles if you have the source file in question open.

How do I open the task list in Eclipse?

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.

What is a tag for task?

A task tag is a predefined artifact that identifies an action that must be completed. Task tags also have priority levels. For example, a task tag can be named, FIXME, with a high priority level assigned to it. Task tags remind you of tasks that must be completed.


2 Answers

Have a look at the preference page Task Tags. Is Enable searching for Task Tags ticked?

like image 75
Tonny Madsen Avatar answered Nov 04 '22 07:11

Tonny Madsen


I've used the //TODO and perform building at least once. The task will be displayed at the task view.

like image 39
Charlee Chitsuk Avatar answered Nov 04 '22 06:11

Charlee Chitsuk