Implementing Feature Project add-on to an Eclipse Plugin Project
I may be ill-informed, but to me implementing a Feature means getting an icon at the Help > About Eclipse Platform dialog. An icon beside the default, blue Eclipse icon. An icon for the developer to click on and bring up yet-another-dialog, listing the plugins my Feature contains.. together with some professional looking details about the whole thing.
But, getting that icon to appear apparently isn't easy. For a start, I couldn't find much (any!) details on the bare minimum stuff I need to specify. Now, before I forget.. I'll better write them all down. Prequisites:
- A plugin project in your workspace that is working fine. (Let's call it plugin id org.yanime.plugin)
- Create a Feature Project via File > New > Projects > New Feature Project
- Feature ID: Preferably the same ID as your plugin (org.yanime.plugin)
- Feature Name: anything goes
- Version: anything goes
- Provider Name: I haven't investigated, but I'd assume it should be the same as your intended plugin
- Branding Plugin: Apparently, if your Feature ID != plugin id.. you'll have to state your plugin id here. Else, just leave it blank.
- Banner Image: any 32x32 gif image, put at the root folder of your Feature Project
- Go to "Build" tab and make sure your image and feature.xml is included in the binary build.
- Go to "Content" tab and include your plugin (org.yanime.plugin)
- Copy these set of files from other existing plugins (e.g. eclipse/plugins/org.eclipse.jdt_3.0.1)
- about.ini
- about.mapping
- about.properties
- eclipse32.gif
- I forgot, but in case it doesn't work, grab welcome.xml and about.html as well.
- Inside about.mapping, there is only 1 effective line, 0=xxxxx, don't change the 0=. the xxxxx is what will appear in place of {0} inside about.properties (by default, used for Build id)
- Now, edit your plugin.xml > build (or edit build.properties directly) and make sure these files are all included in your plugin's binary build.
And also, I think as long as the Feature's Provider Name is the same, they'll share the same icon. Upon clicking that, the list you see is the list of Features under that Provider Name. So, if you have 10 plugins and 1 feature, you'll only see 1 listed. If you want all of your plugins to show up with the descriptions and all, you'll have to create a Feature for each plugin.