Version 1.5
Copyright © 2008, 2009, 2010, 2011, 2012 Lars Vogel
10.04.2012
| Revision History | ||
|---|---|---|
| Revision 0.1 | 18.09.2008 | Lars Vogel |
| Created | ||
| Revision 0.2 - 1.5 | 21.07.2009 - 10.04.2012 | Lars Vogel |
| bug fixes and enhancements | ||
Table of Contents
Programmers perform certain activities, for example fixing bugs. It usually involves searching for the right classes and / or the relevant statement. Frequently the work of the developer is disrupted by other things, such as incoming phone calls, meetings and urgent software issues.
Eclipse Mylyn is a software component packaged with the Eclipse IDE. The idea of Mylyn is to preserve the current state of the Eclipse IDE in a so-called task.
Eclipse Mylyn allows the developer to record his activities in a task context while he is working.
When switching between tasks, open editors are restored. Mylyn can also filter information in the IDE. For example, the package explorer can be set to show only the files relevant for the current task.
This sounds simple but helps finding the right information much faster, when you activate a task which you worked on earlier.
Mylyn is a very active project and provides lots of helpful tools. This text describes the usage of Mylyn for managing local tasks.
It is also possible to integrate Mylyn with bug tracking solutions. In this case, tasks and the content of these tasks can be shared among developers. This is even more powerful but will not be described here, as there are lots of different bug tracking systems and the integration to them is rapidly changing.
The "Task List"
View
is part of the standard Java
Perspective. In case you closed the view, you can re-open it via
→ → → .

To create a new task press "New Task" (or → → . Select the "Local" repository, as shown in the following screenshots.


To start working on a task, select the button "Activate task". This
will
remove all elements from your "Package Explorer"
View
as you have not worked on anything
yet.

Remove the task filter by clicking the "Focus on Active Task" button
in the "Package Explorer"
View. Now
all files
are displayed. If you open a file, it
will be added to
the context of
your
task.

Once you have identified all necessary elements, you can focus again on the task to filter out the unnecessary elements.
If you have to switch to another task you simply can activate it. The context of the task will be restored.
This blog entry describes how to add files to the Mylyn context via code Modifying Mylyn Context
Before posting questions, please see the vogella FAQ. If you have questions or find an error in this article please use the www.vogella.com Google Group. I have created a short list how to create good questions which might also help you.
www.eclipse.org/mylyn/ Mylyn Homepage
Eclipse RCP Training (German) Eclipse RCP Training with Lars Vogel
Android Tutorial Introduction to Android Programming
GWT Tutorial Program in Java and compile to JavaScript and HTML
Eclipse RCP Tutorial Create native applications in Java
JUnit Tutorial Test your application
Git Tutorial Put everything you have under distributed version control system