Sample Code: Tool.setProperties()
VDisplayModel displayModel = null;
VConsoleProperties properties = null;
JFrame consoleFrame = null;
/**
* This method will be called by the console engine when this Tool is
* created. It sets the properties object which contains the properties
* of the environment which the tool is running in.
*
* @param properties the properties object
*/
public void setProperties(VConsoleProperties properties) {
this.properties = properties;
if (properties = null)
return;
// Get the display model
displayModel = (VDisplayModel)properties.getPropertyObject(
VConsoleProperties.DISPLAYMODEL);
// Get the main console frame
consoleFrame = (JFrame)properties.getPropertyObject(
VconsoleProperties.FRAME);
...
} // setProperties