Starting Eclipse Plugin Development

I had been developing an Eclipse plugin for the last few weeks. Starting out the plugin development for a person with no idea of Eclipse plugin environment is very difficult. Here I’ll point out to the sources that helped me to solve the problem.

Start here: blog post describes how to create a simple plugin( and also the terns associated with plugin development. It also gives overall idea about how to create menus, how to select a text etc.

Displaying markers

Plugins allow us to highlight certain portions of the text in the code editor. Markers are used for this. Markers can also be used to show errors, so that error is marked in compilation and the error is shown in Problems view. The following links show how to create and manipulate markers:

Create Dialog boxes within Eclipse

Some times our plugin might need to show some dialog boxes to the users. It can range from a simple Error message box to some complex dialog box. Dialog boxes can be created using JFace as mentioned here :,0
How do I insert text in the active text editor? This is a common requirement. Find the solution here :

Formatting the code

Some times we might need to insert pieces of code into the code editor and it feel good if the code is formatted. Look here to see how to do it :

Fiddling with the source code

What is the use of a plugin if you can’t get into the details of Java source code of the opened projects? Eclipse provides Java Model and Abstract Syntax Trees for this purpose. Java Model is an easy to use and fast model whereas AST is relatively slow, but ASTs contain much more details. Here are the some links to start with this:


One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s