Class Generator
The tab Class Generator is used to generate Java friendly MIB used by FriendlySNMP library.
The tab contains the following elements:
Table
A table row represents AgenPro generated Java files, one row
per one Java file. The table contains the following columns.
File Directory
The absolute location of the directory with the Java file.
File Name
The Java file name.
Package
The package name of the Java class. This value is populated
after first successful compilation.
Status
The Java file status. There are following strings which could
be displayed in this column:
The status Up-to-date or Generation required are based on input and output Java files timestamp, where input file is an AgenPro generated file and output is FriendlyPro generated friendly mib Java file.
Console
The console contains the current message.
Buttons
Add
Adds new row into the table. Click this button to open Choose
a Java file dialog. Navigate to AgenPro generated Java file you want to add
to the table and click Open.
Delete
This button is enabled if some rows are selected.
Deletes selected row(s) from the table. All selected rows
will be deleted after confirmation.
Select All / Deselect All
Selects / deselects all rows in the table.
Classpath
This button is enabled if a single row is selected.
Provides an option to add classpath elements to a selected
row. These elements will be combined with generic classpath defined in Preferences
and added to the classpath javac arguments. These additional classpath
elements might be required if the Java file contains custom code preserved by
AgenPro.
Navigation in the classpath popup window.
Click button Add JAR or Add Folder to add
required classpath element. Click button Remove to remove selected
classpath element in the list of classpath elements.
Refresh Status
This button is enabled if some rows are selected.
Refreshes status column for selected row(s) in the table. This operation might be required after changes in a file system and forces the application to reload status column value.
Generate
This button is enabled if some rows are selected.
Generates friendly mib Java file(s) for selected rows using an AgenPro generated file(s) as an input. The task is completed successfully if you see Up-to-date status for all generated rows.