dagblog.
← Archive

Eclipse’s little details — My tasks


Every programmer occasionally leaves a FIXME or TODO in the source to come back to later. When several people work on a project, it’s usually difficult to find all the fixes and to-dos that belong to one programmer. Here’s how to use the Eclipse Tasks view and a filter to show just one group of those notes or tasks.

The developers have to be a little disciplined. Each person adds a tag to their own to-dos and fixes so the tasks can be filtered. The next screenshot shows that.

Archive image in Eclipse’s little details — My tasks, figure 1
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 1
↗ Medium

Eclipse normally shows any comment containing TODO, FIXME or XXX in the Tasks view (Window >> Show View >> Other >> General >> Tasks).

Archive image in Eclipse’s little details — My tasks, figure 2
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 2
↗ Medium

As you can see in the screenshot, the Tasks view shows everything by default. Let’s create a filter that shows only our tasks.

Archive image in Eclipse’s little details — My tasks, figure 3
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 3
↗ Medium
Archive image in Eclipse’s little details — My tasks, figure 4
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 4
↗ Medium

(Full size, about 30 KB)

Create a new filter with New. Set the scope to On any element in same project (or On any element). Under Description contains, enter your tag, for example Dagi. Check the filter on the left to make the view use it by default.

Archive image in Eclipse’s little details — My tasks, figure 5
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 5
↗ Medium

(Full size, about 30 KB)

You can define and apply as many filters as you like. The next screenshot shows the result of the filter we defined.

Archive image in Eclipse’s little details — My tasks, figure 6
Image could not be loaded. Archive image in Eclipse’s little details — My tasks, figure 6
↗ Medium

Related articles

Medium version

Related articles

Related CZ Podcast episodes