JinnIde - Creation of Jinni Prolog Getter/Setters

JinnIde is the Jinni Prolog IDE Plugin for JEdit. From the Cassandra release onwards, Jinni Prolog code development is supported by automated creation of Jinni Prolog getter/setters. The following explains how to create Jinni Prolog getter/setters automatically.

To generate a Jinni Prolog rule JinnIde offers a GUI dialogue that allows creating a JinniDoc-based template. With JinnIde this is a trivial and simple thing to accomplish:

  1. Create a new Jinni Prolog file by selecting File/New or pressing CTRL-N. Of course, alternatively one may take an existing file.
  2. Open up the template viewer or pull down the templates menu and click on Create getter-setter
  3. The GUI dialogue comes up:

  1. Fill out the entries:

For the given example, the filled dialogue may look as follows:

  1. After pressing OK all these variables are written out to the buffer you just created in step (1) or inserted at the cursor position of JEdit's buffer for the existing file. For above input the following output is generated:

So one can see that, apart from the above developer's descriptions, JinnIde also produces

Internally all this is accomplished by applying the velocity template engine which comes along with the templates plugin available for JEdit (which is thus one of the required plugins for JinnIde). Take a look at the documentation of the templates plugin for the details.

© 2001-2014 Chico Töpfer