Copyright © 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 vogella GmbH
Table of Contents
Similar to plug-in projects you can also create feature projects via the Eclipse wizards. An Eclipse feature project contains features.
A feature describes a list of plug-ins and other features which can be understood as a logical unit. It also has a name, version number and license information assigned to it.
is described via a
file. The following listing shows an example of such a file.
<?xml version="1.0" encoding="UTF-8"?> <feature id="com.vogella.eclipse.featuretest.feature" label="Feature" version="1.0.0.qualifier" provider-name="vogella GmbH"> <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="com.vogella.eclipse.featuretest.feature" download-size="0" install-size="0" version="0.0.0" unpack="false"/> </feature>
You can create a new feature project via the following menu path:→ → → → .
If you open the
file you can change the feature
properties via a special editor.
The Information tab allows you to enter a description and copyright related information for this feature.
The Plug-ins tab allows you to change the included plug-ins in the feature.
The Included Features tab allows you to include other features into this feature. Via the Dependencies tab you can define other features which must be present to use this feature.
If you want to add a plug-in to a feature, use the Plug-ins tab. A frequent error of new Eclipse developers is to add it to the Dependencies tab.
tab is used for the build process and should include the
file. The last two tabs give access to the configuration files in text
A product can either be based on plug-ins or on features. This setting is done on the Overview tab of the product configuration file.
On the Dependency tab you enter the plug-ins or features your products consists of.
A product does not perform automatic dependency resolution. If you add a feature to your product and want to add its dependencies, press the Add Required button.
The grouping of plug-ins into logical units makes it easier to handle a set of plug-ins. Instead of adding many individual plug-ins to your product configuration file you can group them using features. That increases the visibility of your application structure.
Features can be 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.
for Eclipse based RCP applications.
Writing and updating these tutorials is a lot of work. If this free community service was helpful, you can support the cause by giving a tip as well as reporting typos and factual errors.
If you find errors in this tutorial, please notify me (see the top of the page). Please note that due to the high volume of feedback I receive, I cannot answer questions to your implementation. Ensure you have read the vogella FAQ as I don't respond to questions already answered there.
|TRAINING||SERVICE & SUPPORT|
|The vogella company provides comprehensive training and education services from experts in the areas of Eclipse RCP, Android, Git, Java, Gradle and Spring. We offer both public and inhouse training. Whichever course you decide to take, you are guaranteed to experience what many before you refer to as “The best IT class I have ever attended”.||The vogella company offers expert consulting services, development support and coaching. Our customers range from Fortune 100 corporations to individual developers.|