Wednesday, July 7, 2010

Adding a non-default extensions to your Eclipse Plug-in Project

To extend any Plug-in with the Eclipse features, The modifications need to be performed in the Plug-in.xml.

1) As the first step, Create a plug-in project. Once done, open the Plug-in.xml file of this project.

2) To extend any Eclipse feature in your plug-in project... (example: features like Preference page, property page, Launch configuration, etc..), the feature's related jar needs to be added into the 'Extensions tab'. So, click on the 'extensions' tab and add the corresponding plug-in. Sometimes, the plug-in you are looking for may not be available to add form the extensions tab. This implies that the plug-in you are looking for needs to be added to the environment.

3) To make a certain plug-in available for your extensions tab, add the related plug-in in the 'dependencies tab'. Once this is done, The extensions will be available.

For instance, if I want to add the ' org.eclipse.debug.ui.launchShortcuts' into my Extensions, I need to first add the related plug-in, org.eclipse.debug.ui' into my 'dependencies'

No comments:

Post a Comment