Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Where in JDT is task tag support implemented?
Where in JDT is task tag support implemented? [message #650427] Mon, 24 January 2011 14:43 Go to next message
No real name is currently offline No real name
Messages: 101
Registered: August 2010
Senior Member
Hi,

I would like to implement task tag support for my editor. Like, capture // TODO: blah blah and show it in the task view pane.

I looked at the implementation of the TaskPropertiesDialog (class that implements Edit -> Add task...) to get some initial ideas.

I want to know where in the JDT plugin code is the feature of task tag support is implemented? Can someone point me to the correct .java files (and their location in the heirarchy)?

The trick will be to go add some sort of a listener / document updater to a resource. When the user presses Save, this update gets called. It extracts all the comments with the TODO/FIXME/XXX etc tags and creates/updates tasks for them (if not already created).

Thank you for any ideas / help.
Re: Where in JDT is task tag support implemented? [message #650770 is a reply to message #650427] Wed, 26 January 2011 08:25 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 24.01.2011 20:43, pgbackup@yahoo.com wrote:
> Hi,
>
> I would like to implement task tag support for my editor. Like,
> capture // TODO: blah blah and show it in the task view pane.
>
> I looked at the implementation of the TaskPropertiesDialog (class that
> implements Edit -> Add task...) to get some initial ideas.
>
> I want to know where in the JDT plugin code is the feature of task tag
> support is implemented? Can someone point me to the correct .java
> files (and their location in the heirarchy)?
> The trick will be to go add some sort of a listener / document updater
> to a resource. When the user presses Save, this update gets called. It
> extracts all the comments with the TODO/FIXME/XXX etc tags and
> creates/updates tasks for them (if not already created).
There's a method called on your editor when it gets saved. At that point
simply parse the document and updated the task list.

Dani
>
> Thank you for any ideas / help.
Previous Topic:iGesture compilation error
Next Topic:Help Loading ImageIcons
Goto Forum:
  


Current Time: Fri Jul 25 11:20:28 EDT 2014

Powered by FUDForum. Page generated in 0.01468 seconds