Free tutorials for Java, Eclipse and Web programming



Follow me on twitter

Eclipse Plugin Development Tutorial

Lars Vogel

Version 1.5

21.06.2010

Revision History
Revision 0.101.04.2008Lars Vogel
Created
Revision 0.2 - 0.914.04.2009 - 20.04.2009Lars Vogel
bugfixes and enhancements
Revision 1.031.05.2009Lars Vogel
Update to Eclipse 3.5
Revision 1.1 - 1.412.07.2009 - 21.04.2010Lars Vogel
bugfixes and enhancements
Revision 1.521.06.2010Lars Vogel
Update to Eclipse 3.6 (Helios)

Eclipse Plugins Tutorial

This article describes the creation and deployment of Eclipse plugins. The article is based on Eclipse 3.6 (Eclipse Helios) and Java 1.6.


Table of Contents

1. Eclipse Plugins
2. Hello World Plugin
3. Contribute to existing UI elements
3.1. Overview
3.2. Using commands
3.3. Contribute to package explorer
3.4. Restrict the extension - Visible When
4. Resources and Marker
4.1. Overview
4.2. Create markers
5. Adapters
5.1. Overview
5.2. Example
6. Deploying a plugin
7. Thank you
8. Questions and Discussion
9. Links and Literature
9.1. Source Code
9.2. Eclipse Resources
9.3. vogella Resources

1. Eclipse Plugins

Eclipse is a powerful, extensible IDE for building general purpose applications. The Eclipse IDE allows the developer to extend the IDE functionality via so-called plugins. You can add new functionality for example menus, toolbar items, views, editors and perspectives to the Eclipse IDE via these plugins. This tutorial gives several examples how to do this.

Eclipse is build upon the OSGI framework (Equinox) . The OSGi framework provides a dynamic modular architecture in which so-called bundles can be deployed. Out of historical reasons Eclipse uses the term plugins but Eclipse plugins are the same as OSGi bundles. Via these plugins / bundles you can extend the Eclipse IDE.

This tutorial assumes that you are already familiar with using the Eclipse IDE . You may also want to have a look at the Eclipse RCP Tutorial .