Eclipse - padogrid/padogrid GitHub Wiki

◀️ VS Code :link: KryoSerializer Generator ▶️


Eclipse is a popular open source Java IDE donated by IBM in 2004. PadoGrid provides a code generator plugin for Geode/GemFire and Pado. The plugin generates DataSerializable, PdxSerializable, and JsonLite KeyType classes based on the instance variables.

Installing Eclipse

To install Eclipse, please follow the instructions provided in the following link.

Installing Eclipse Plugin

:pencil2: The plugin has not been made available in Eclipse MarketPlace. The author hopes to make that happen in the near future. Until then, please follow the instructions below.

  1. Download the plugin by clicking on the link below.
  1. Place the downloaded plugin in the Eclipse's dropins folder.
OS dropins Path
macOS /Applications/Eclipse.app/Contents/Eclipse/dropins/
Windows %USERPROFILE%\eclipse\java-2022-03\eclipse\dropins\
Linux <directory-where-you-inflated-the-Eclipse-tarball>/eclipse/dropins/

macOS:

mv ~/Downloads/com.netcrest.pado.eclipse_2.0.1.202205171219.jar /Applications/Eclipse.app/Contents/Eclipse/dropins/

Windows:

move %USERPROFILE%\Downloads\com.netcrest.pado.eclipse_2.0.1.202205171219.jar C:\Users\dpark\eclipse\java-2022-03\eclipse\dropins\

Linux:

mv ~/Downloads/com.netcrest.pado.eclipse_2.0.1.202205171219.jar <directory-where-you-inflated-the-Eclipse-tarball>/eclipse/dropins/
  1. Restart Eclipse. You should see three (3) new icons in the Eclipse toolbar as shown below.

Eclipse Toolbar

  1. For instructions, click on the Magnifying Glass icon and type pogo (Plain Old Geode/GemFire Object).

Eclipse POGO Help

Using Eclipse Plugin

  1. Open or create a Java class.
  • DataSerializable and PdxSerializable: Any class with instance variables.
  • JsonLite: An empty enum class.
  1. Click on one of the toolbar icons (or select one of the items in the Pado pulldown menu).
  2. From the popup dialog, click the OK button to generate code.

:pencil2: Note that JsonLite is Pado specific and generates KeyType enum classes. You start with an empty enum class and use the plugin to define KeyType entries. There is a known bug in the v2.0.1 release. It does not generate the getValue() method in KeyType.

Uninstalling Eclipse Plugin

To uninstall the plugin, remove the plugin jar file from the Eclipse's dropins folder.


◀️ VS Code :link: KryoSerializer Generator ▶️