Sybase 7.5 manual Creating a class from the Browser, Creating a class from the list of classes

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 32
Image 32

Defining classes

Creating a class from the Browser

ϖTo create a class from the Browser:

1 Right-click the Classes category in the Browser. 2 Select New from the contextual menu.

The property sheet of the class appears.

3 Type a class name and a class code.

4 Click OK.

A new class is created in the Classes category.

Creating a class from the list of classes

ϖTo create a class by inserting it in the list:

1Select ModelClasses. The list of classes appears.

Accessing the list of classes

The list of classes is accessible only from a diagram. If the current diagram is of a package, the list contains all the classes that exist in the package. If the current diagram is of the model, the list contains all the classes that exist in the model.

2Click a blank line in the list. or

Click the Add a Row tool.

An arrow appears at the beginning of the line.

3Type a name and code for the class.

4Select a stereotype from the Stereotype dropdown listbox.

5Select a visibility from the Visibility dropdown listbox.

6Click OK.

A symbol for this class is inserted in the current model.

22

Page 32
Image 32
Sybase 7.5 Creating a class from the Browser, Creating a class from the list of classes, Accessing the list of classes