vogella training Android Training Eclipse Training

Eclipse Mylyn - Tutorial

Lars Vogel

Version 1.5

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

Eclipse Mylyn

This article describes the usage of Mylyn for Eclipse.


Table of Contents

1. Mylyn
1.1. Motivation of Mylyn
1.2. Scope of this description
2. Using Mylyn
2.1. Working with local tasks
2.2. Export / Import
3. Coding Mylyn
4. Thank you
5. Questions and Discussion
6. Links and Literature
6.1. Mylyn Resources
6.2. vogella Resources
This tutorial is part of this Kindle book:

Kindle Edition

1. Mylyn

1.1. Motivation of Mylyn

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.

1.2. Scope of this description

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.

2. Using Mylyn

2.1. Working with local tasks

The "Task List" View is part of the standard Java Perspective. In case you closed the view, you can re-open it via WindowShow ViewMylynTask List.

Task List View

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

Selecting local repository

Selecting local repository

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.

Activate Tasks in the Package explorer

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.

Focus on active tasks

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.

2.2. Export / Import

Mylyn allows you to export and import your local tasks. Select your categories or tasks, right click on them and select "Export and Import" from the context menu.

Export Mylyn tasks

3. Coding Mylyn

This blog entry describes how to add files to the Mylyn context via code Modifying Mylyn Context

4. Thank you

Please help me to support this article:

Flattr this

5. Questions and Discussion

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.

6. Links and Literature

6.1. Mylyn Resources

www.eclipse.org/mylyn/ Mylyn Homepage

6.2. vogella Resources

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