Pages

Sunday, December 9, 2012

Headless RCP - with many plugins

Introduction

This is the 3rd blog for making standalone headless RCP. For the other two blogs check the references.

In this blog, we are going to show what is needed for an application that depends on other plugins. For the example, we use JDT and LTK, and show to how to implement a rename refactoring tool.

Procedure

Add source code

PastedGraphic41-2012-12-9-20-15.png

You’ll have a lot of errors when you don’t set up the dependencies correctly.

PastedGraphic42-2012-12-9-20-15.png

Using Quick help, you can add required plugins.

PastedGraphic44-2012-12-9-20-15.png

You see the plugin is added in MANIFEST.

PastedGraphic45-2012-12-9-20-15.png

However, the simplest way is to add the dependences in MANIFEST.MF.

PastedGraphic43-2012-12-9-20-15.png

PastedGraphic48-2012-12-9-20-15.png

Don’t forget to set the singleton flag.

PastedGraphic46-2012-12-9-20-15.png

PastedGraphic47-2012-12-9-20-15.png

Run Configurations

You need to execute run configuration to click the “Add Required Plug-ins” button for both application and product.

PastedGraphic49-2012-12-9-20-15.png

Update the product

Go to the product configuration and update using “Add Required Plug-ins”

PastedGraphic50-2012-12-9-20-15.png

References

No comments:

Post a Comment