Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Topic |
Prev | Next |
Creating Objects
This topic explains how to create a workbench instance for a Class from your model.
Access
Context Menu |
Project Browser | Right-click on Class | Execution Analyzer | Create Workbench Instance of Class On a diagram | Right-click on Class | Code Engineering | Execution Analyzer | Create Workbench Instance of Class |
Keyboard Shorcuts |
|
Other |
Drag a class directly from the Project Browser onto the Workbench window |
Topics
Topic |
Detail |
See also |
---|---|---|
Creating an Object on the Workbench |
Select the class in the Project Browser and drag it on to the Object Workbench window. The 'Workbench' dialog displays.
Type in a name for the new instance. The name should be unique for the workbench. Click on the . |
|
Choosing a Constructor |
The 'Constructor' dialog is displayed where a choice of constructor exists.
Select the constructor from the drop-down list. |
|
Enter Parameters |
Provide values for the selected constructor's parameters:
Surround values with quotes where appropriate or where the value would conflict with the name of a Workbench object.
Enter the name of the Workbench object.
one,two,three,"a book","a bigger book"
Supply the named Workbench objects separated by commas. Example: Tom,Dick,Harry |
|
Invoke Constructor |
Click on the Workbench window. to create the instance. The object can be recognized by its name in the |