Plugin Development Guide: Preparing an environment in Eclipse
OK, first of all, you need to prepare some sort of an environment for you to write a plugin. It's not necessary for you to use Eclipse - but this article is for people who might feel a little overwhelmed and unsure how to get going. :)
Assuming that you've installed Eclipse, here's how to get going.
- First of all, create a Java project.
- At this stage, there are only two things which are important.
- The first is which version of Java to work with. I would recommend 1.4 if possible, otherwise 1.5 / 5.0 should be fine.
- The second is the "Use project folder..." option. This is a personal preference, but I find it easier to work with projects created with this option.
- Now it's time to include your dependencies. You need to include the pluginapi.jar file. You should include the swt.jar file if you need to interact with the SWT library at all (this is the graphics library used for the main interface). I'll recommend including this file for later steps of this guide.
- Done - you now have your plugin project.