Back to top

vogella training Training Books

Eclipse Feature Projects - Tutorial

Lars Vogel

Version 2.2

28.06.2012

Revision History
Revision 0.1 30.11.2008 Lars
Vogel
created
Revision 0.2 - 2.2 20.04.2009 - 28.06.2012 Lars
Vogel
bug fixes and enhancements

Eclipse Feature Project

This tutorial describes the purpose and usage of Eclipse feature projects and Fragments.


Table of Contents

1. Feature project
2. Thank you
3. Questions and Discussion
4. Links and Literature
4.1. Eclipse resources
4.2. vogella Resources

1. Feature project

An Eclipse feature project contains features. A feature has a name, version number, a software license and contains a list of plug-ins and other features which can be understood as a logical unit.

A feature is described via a feature.xml file in the Eclipse feature project.

Features are used by the Eclipse update manager, the build process and optionally for the definition of Eclipse products. Features can also be used as the basis for a launch configuration.

Eclipse provides several predefined features, e.g. org.eclipse.rcp for Eclipse 3.x based RCP applications or org.eclipse.e4.rcp for Eclipse 4 based RCP applications.

You can create a new feature project via the following menu path: File NewOther...Plug-in Development Feature Project.

If you open the feature.xml file you can change the feature properties via a special editor.

The Plug-ins tab allows you to change the included plug-ins in the feature.

The feature.xml file is a simple text file. For example the file might look like the following in a text editor.

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="de.vogella.featuretest.feature"
      label="Feature"
      version="1.0.0.qualifier">

   <description url="http://www.example.com/description">
      [Enter Feature Description here.]
   </description>

   <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>

   <license url="http://www.example.com/license">
      [Enter License Description here.]
   </license>

   <plugin
         id="de.vogella.featuretest.testplugin"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

</feature> 

2. Thank you

Please help me to support this article:

Flattr this

3. 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.

4. Links and Literature

4.1. Eclipse resources

The Eclipse p2 update wiki

4.2. vogella Resources

vogella Training Android and Eclipse Training from the vogella team

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