RCP 3.1 Product Configuration

Most of us have a working copy of RCP project from Eclipse 3.0. In Eclipse 3.1M5 and M6, a new product configuration is introduced - *.product, with familiar gui like the one with plugin.xml.

I am not going into length of creating RCP application, refer to Eclipse & RCP for links to other resources on RCP.

  • Right click on your RCP plugin application in the Package Explorer view. Select New -> Product Configuration.
    New Product Configuration
  • Type in the filename, it must ends with .product. One trick is to just use .product by type in \.product. However no gurantee this will not be disabled in the future.
  • In the Initialize the file content section, you can use any of the options that suit your need. Since I'm focusing on existing RCP project, Use a launch configuration is the easiest way as we already have the plugin dependency sort out and tested.
  • Click Finished button and it will bring up the product configuration Overview view, or double click the .product file to bring it up.
    Product Overview
  • You can now customize your RCP product by defining the Product ID, Application, product name and command line arguments. Note that other things can be configured as well, under the Configuration tab, there is Plugins and Fragments to include, and config.ini setting. Product branding can be easily done through the Branding tab - launcher name, icons, splash screen, and about box.
  • To export use the Eclipse Product export wizard under the Overview->Exporting. Before that, click Synchronize link under Overview->Testing to make sure your plugins are included properly or alternatively you can check the Synchronize before exporting option in the wizard.

There you have your RCP application ready to be deployed.