Skip to content

Setting up a development environment

Eyal Allweil edited this page Sep 13, 2016 · 3 revisions

Setting up a development environment

In order to set up a development environment, follow the following steps:

1. Make sure your Eclipse has the PDE (Plug in development) features installed. You should install the following plugins in order to see Eclipse source code (invaluable!)

  • Eclipse JDT Plug-in Developer Resources
  • Eclipse PDE Plug-in Developer Resources
  • Eclipse Platform SDK
  • Eclipse Plug-in Development Environment
  • Eclipse SDK

2. Download the pig-eclipse source code to your computer.

3. Go to File -> Import, and then choose the General -> Existing projects into workspace option from the Eclipse import menu.

4. To run Pig-Eclipse, right-click org.apache.pig.contrib.eclipse (the project itself) and choose Run As -> Eclipse Application

Creating an update site (binaries)

1. Choose File -> Export

2. Expand Plug-in Development, and choose Deployable features

3. Mark the checkbox in "Available Features"

4. Choose a directory to put your binaries. You can clone the pig-eclipse-update-site if you want to compare to my binaries)

5. Choose the "Options" tab, and check "Categorize repository". Click Browse and search for a file called category.xml (it's part of the Pig-Eclipse source code_

6. Mark "Qualifier replacement" - otherwise unless you change the version, Eclipse will not update to the created binary.

7. Click finish. You can install by adding the folder you created as a local update site.

Useful links for afterward

Here are some links that may help you in understanding Eclipse plugin development

1. Examples for Eclipse platform classes hold at Charles University in Prague

2. Eclipse Editor Plugin - Tutorial (Vogella)

Clone this wiki locally