Dimitri Missoh
enthusiastic technologist and problem solver

August 16th, 2009

Eclipse RCP for dummies - Create an Eclipse based RCP Application in less than 2 minutes.

This short article described how to create and export the RCP Mail demo as a Product in less than 2 min. I will refer to this tutorial in upcoming articles about aspect oriented programming and equinox transforms.

I assume that you install the last Eclipse release (Galileo), if you don’t, any older release will do it.

P.S.: You need the Eclipse for RCP/Plug-in Developers distribution of the Eclipse IDE.

So let’s go:

I - Create the Mail Demo plug-in

1) Choose File>New and select Plug-in project from the category Plug-in development. Go to the next wizard page by clicking on Next .

2) Enter e.g. ‘com.dmissoh.rcp.mail’ for the field Project Name then Next.

3) Select ‘Yes‘ for the option ‘Would you like the create a rich client application?‘, then click on Next to access the next wizard page.

4) Select the template ‘RCP Mail Template‘ then click on Next and Finish. You are now done for the first part. Eclipse should now shows the Manifest Editor that show details to the new plug-in and application can now be started (Using e.g. the link ‘Launch an Eclipse application‘ available in the ‘Testing‘ session of the manifest editor).

Start the Mail Demo RCP using the manifest editor.

II - Add a product configuration

1) Select the project your previously created in hte package explorer and then File > New > Other > Plug-in Development > Product Configuration then click on Next.

2) Enter e.g. ‘mail.product‘ for the field ‘File name‘. Under ‘Initialize the file content‘ the option ‘Use an existing product‘ should be selected and set to ‘com.dmissoh.rcp.mail‘ (which corresponds to the name you give you plug-in in step I/2). If it is not the case, just complete it manually. At the end of this procedure, eclipse automatically opens the product description file ‘mail.product’ in the manifest editor. This new editor provides a handy way to start the RCP application (similar to the step I/4) and most important to export this application.

3) To export the Mail application, just click on ‘Eclipse Product Export wizard‘, gives an export destination (e.g. the directory in which the application should be exported, you can e.g. create a folder on the Desktop for it) and click on Finish.

4) After some seconds, you will find the exported product in the folder you gives above. In the folder you give above, go to the underlying directory ‘eclipse‘ which should contains the file ‘eclipse.exe‘. This is the executable file to start the RCP mail demo.

Export the RCP application using the product configuration.

That it’s.

Note: I use e.g. this Mail Demo every time a have to develop an RCP application from scratch.

III - Outline

The next step will be to explore all of the possibilities Eclipse provides out of the box to develop RCP applications. Here are two excellent articles that address this topics:

April 20th, 2008


Welcome to my blog!

I ported my blog to wordpress on a free provider space (www.free.fr).

And as you can see it works!