Sunday, March 9, 2014

Creating Eclipse product

Eclipse product is a way to release Eclipse executable with your plugin all-in-one so that you can distribute it (as alternative to the update site). Therefore, you first create a plugin project. For instance, New > Plug-in project, pick project name, Next > Next and Hello World. To create a product, do New > Product configuration. This will crate a product file. Just pick any name you like for it. Next, in the Overview tab of the product file, create New product definition using org.eclipse.ui.ide.workbench as the application. The defining plug-in has no effect. Go into the Dependencies and add your plugin, finding it by name. You also need to add org.eclipse.ui.ide.application plugin because it is needed for the org.eclipse.ui.ide.workbench but stupid eclipse won't do it for you as it discarded the defining plug-in completely. Now, you "Add Required Plug-ins", save and ready to run your product or export it (Export > Plug-in Development > Eclipse product).

No comments: