Chapter 3. Creating The First Plug-in

Table of Contents

Creating the Plug-in
The project
Testing the Plug-in
Exporting the plug-in
Deploying the plug-in in a project

Creating the Plug-in

Once PDE is installed, we can create a small example Hello World plug-in. This plug-in will place a menu item on the main menubar. Invoking the menu item will launch a simple dialog.

Choose File | New | Project… from the menu. The New Project wizard dialog comes up, with project type selection on the first page. Choose Plug-in Project from the Plug-in Development group and click Next.

images/new-plugin-project.png

On the next page, enter org.example.hello for project name, then click Next. On the following page (Content), you can just click Next as well. The following page allows you to choose the initial content for your project from among several code examples. Choose Hello, World, then click Finish.

A new project named org.example.hello will be created.

The IDE will also ask you if you want to switch to the Plug-in Development perspective; answer Yes.