PluginDevGuide Eclipse

From VuzeWiki
Jump to: navigation, search

Plugin Development Guide: Preparing an environment in Eclipse[edit]

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.

PluginDevGuide Eclipse 1.png

  • 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.

PluginDevGuide Eclipse 2.png

  • 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.

PluginDevGuide Eclipse 3.png

  • Done - you now have your plugin project.

PluginDevGuide Eclipse 4.png

Now to actually create a plugin...