Skip navigation links

Package jgrasp.viewer

API for adding viewers to jGRASP.

See: Description

Package jgrasp.viewer Description

API for adding viewers to jGRASP. This API is new. It should be considered a Beta API, and all of it is subject to change. Feel free to make comments and suggestions, by using "Help" / "Report a Bug" from jGRASP or sending email to graspATengDOTauburnDOTedu .

Viewers are gui components that are used to display values in the debugger or workbench. Each viewer is a subcomponent of the Viewer class.

Viewer class or jar files may be placed in the following locations:

Viewers may be placed in packages, in which case the package root directory must be one of the directories listed above. Viewer packages may also be jarred, and the jar file placed in one of the directories listed above.

Viewer class names determine the class or interface to which they apply. Naming conventions can be found in the Viewer documentation.

In order to compile a viewer, jgrasp.jar from the jGRASP installation must be on your CLASSPATH (you will also want "." on your CLASSPATH). For a default installation on Windows, this would be C:\Program Files\jGRASP\jgrasp.jar . The easiest way to compile viewers in jGRASP is to use the "jdk for building jGRASP viewers" compiler environment. To do this, go to "Settings" / "Compiler Settings" / "Workspace" (or your viewer project), select language "Java" if not already selected, select the "jdk for building jGRASP viewers" environment and hit the "Use" button. Another option is to go to "Settings" / "PATH/CLASSPATH" / "Workspace" (or your viewer project), and add the jgrasp.jar file to the CLASSPATHs there (lower window).

If you compile viewers from outside of jGRASP, you can reload them while the debugger or workbench is running using "Tools" / "Reload Plugins". Previous viewers will continue to run, so you can compare old and new versions of your viewer as you make changes.

Source code for the viewers that are delivered with jGRASP may be found in the jGRASP distribution under extensions\viewers . For a default installation on Windows, this would be C:\Program Files\jGRASP\extensions\viewers .

Skip navigation links