Create & Delete Workbench Instances

Topic under construction

This topic explains how to create and delete a workbench instance for any Class in your model.

Access:    Project Browser Class context menu | Execution Analyzer | Create Workbench Instance of Class  ( Ctrl+Shift+J )
                  Diagram Class context menu | Execution Analyzer | Create Workbench Instance of Class

Topics:

Topic

Detail

See also

Naming the Workbench

Select the Create Workbench Instance of Class option

The Workbench dialog displays

debug_work_create
 

Type in a name for the new instance (for example, Catherine); each instance name must be unique for the workbench

 

Choosing a Constructor

Click on the Create button

The following dialog displays:

debug_workbench_ctor

Select the constructor from the drop-down list and fill in any parameters required

Click on the Invoke button; a command window displays

The instance then displays in the Workbench window, showing the variables of the instance in a hierarchy of the type and value of the instance and of any members

If you do not define a constructor, or define a single constructor taking no arguments, the default constructor or the defined constructor is automatically invoked

 

Delete Workbench Instances

You can delete instances using the Delete shortcut menu on any instance on the Workbench

If all instances are deleted, the debugger is shut down and the Workbench window is closed