Introduction
Creating headless RCP for Juno (eclipse 4) seems to be straightforward, but some tricky configuration and setup is required to have a working headless RCP. This article aims to show the procedure for making headless RCP for Juno.
Procedure
Start with Plug-in Project
Don’t forget to unchkec “This plug-in will make contributions to the UI”.
No template to use.
Now, you have the skeleton code.
Setup MANIFEST.MF
Go to the Extensions tab. You need an “Extension Point” so that you can make an eclipse application.
Click right button to add “run”.
Make the class name as “Application”, clicking “class*”, you can open the Java source.
Just add one line of code.
The default id is “id1” or similar, you may change it into some meaningful name editing “plgin.xml”.
Setup “Run Configurations”
You can execute the application, but you need to setup using “Run Configurations…”.
In the Arguments, you need to add “-clean” for preventing “Workibench has not been created yet” error.
You need to click “Add Required Plug-ins” to make sure all the plugins are included in launching headless RCP.
You can change the workspace location for the headless RCP. As the headless RCP you are making is an eclipse, you can set where it finds the workspace for its own purposes.
You also need to check if you set the “Run an application” correctly set to your application.
Launch the RCP
You can click the run button and select the application you just created.
Reference
No comments:
Post a Comment