Bug 23145 - Need to surface compiler settings for controlling TODO task detection
Summary: Need to surface compiler settings for controlling TODO task detection
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-04 04:58 EDT by Philipe Mulet CLA
Modified: 2002-09-19 04:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2002-09-04 04:58:43 EDT
Stream 2.1

As a consequence of bug 6976, new JavaCore options were made available to 
control the TODO tasks collection.

Note that some quickfix support would be necessary in order to allow removing 
such tasks automatically from the task view (see 6976 for suggestions).

============
Compiler can now optionally collect TODO tasks from the source code. 
Occurrences of a TODO tag are looked for inside any type of comments, and 
reported along with problems. 
New problem ID got created: org.eclipse.jdt.core.compiler.IProblem#ToDo. 
JavaCore option added to control the severity of TODO reports 
(ignore/warning/error). 
* COMPILER / Reporting occurrences of TODO tags in comments
*    When enabled, the compiler will issue an error or a warning whenever it 
encounters
*    a TODO tag inside any comment. The tag value itself is defined by the 
option
*    "org.eclipse.jdt.core.compiler.problem.todoTag".
*     - option id:		
	"org.eclipse.jdt.core.compiler.problem.todo"
*     - possible values:	{ "error", "warning", "ignore" }
*     - default:			"warning"

JavaCore option added for specifying the TODO tag value (default is "TODO:"). 
* COMPILER / Define the TODO task tag
*    Define the tag used to recognize TODO tasks in comments.
*     - option id:		
	"org.eclipse.jdt.core.compiler.problem.todoTag"
*     - possible values:	"" where  is a non-empty string, without any 
wild-card.
*     - default:			"TODO:"
Comment 1 Randy Hudson CLA 2002-09-04 11:15:45 EDT
My suggestion was that any time a method stub is inserted, a @todo tag should 
get inserted, so:

new MouseAdapter(<<CODE ASSIST>>){
  public void mousePressed(MouseEvent e){
    //@TODO implement mousePressed
  }
  public void mouseReleased(MouseEvent e){
    //@TODO implement mouseReleased
  }
}


When "overrideMethod" feature is changed so that it inserts new methods in 
correct alphabetic order, methods will be interlaced throughout an existing 
CU.  The new @todo function will make it easier to track and visit each of the 
inserted skeletons.
Comment 2 Martin Aeschlimann CLA 2002-09-17 04:57:17 EDT
added to preference page > 20020911
Comment 3 Johan Compagner CLA 2002-09-18 18:13:51 EDT
the priority seems to be wrong.

if i sort the task on priority then "TODO" markers come before error markers.
(it would be nice to make the priority of markers customizeable)

Those markers what are they? Because if i look into the taks i still see 
error, info and warning. But those markers are none of them?
Comment 4 Johan Compagner CLA 2002-09-18 18:30:39 EDT
another thing, Can the markers red squire in the overview ruler be a different 
color? Now i always think they are compile errors that can be solved with 
quickfix (hollow red squires)

Extra markers should have a different squire, like green?
Comment 5 Martin Aeschlimann CLA 2002-09-19 03:19:59 EDT
Please file separated bug reports. The image and problem underlining color is a 
JDT-UI/Text request. Task priority is for JDT Core.

Thanks a lot.
Comment 6 Johan Compagner CLA 2002-09-19 04:13:00 EDT
done:

23812 
23810