gEditor is
a
java package that serves as a graphical editor and front end to the J-sim simulation package. As of
today the current version from DRCI is
delivered in a tarball named Javasim-gui-0.04.tgz, which contains a
directory named javasimg0.4
I am not a Java expert, but I made some small changes to create
version 0.5. As of now, version 0.5 is available from crystre.info. I
will offer it ot DRCL in the hope that they will make it available.
Changes from 0.04 to 0.5:
Cleaned up the tarball, which contained class files and other
clutter
Removed the three third .jar files. The user shouold install
these from the originators. Most modern installatins already have them.
Added an ant build file and a make file, adapted
shamelessly from J-sim
Restructured the directory.
Updated the main HTML document.
gEditor can now be installed in a in read-only
common-use location (e.g., /usr/share/J-Sim-gEditor) while still
running in a project directory.
Add the sort code to emit the XML in canonical form. This
simplifies simple-minded manual comparisons of XML files.
Here are the next set of changes that I may decide to make in a future
release:
Add XML document description (i.e., a popup that lets you ad and
examine a comments section in hte XML file.
Add "default" to the properties editor
Add a detailed Tutorial for the ex2.xml example
Add "snap to grid"
Allow use of XML template files
Allow use of XML include files (?)
Make a Gentoo package for J-sim and gEditor.
Templates and Includefiles
You create a template file just as you would any gEditor XML document.
To use a template file, issue a "load template." The templates files
are added as children of the root node. The components are not saved
when the file is saved and are not used as part of the simulation. The
intent is that you can set any node in a template file as the
template, and then implement the template into any ocmponent in your
simulation file.
By contrast, an include file is also read-only, but is used as part of
the simulation. It can be placed as a child node anywhere in your file.
An includefile is included by reference. This means that a change in an
includefile can change your simulation even if you do not change your
own document. In this regard an includefile is similar to a Java
component class. In fact, an includefile can be thought of as a
component class written in XML instead of Java.