IBM
Contents Index Previous Next



Editing a Diagram


The Browse & Edit Class dialog lets you view and edit the complete definition of a class to ensure consistency between the attributes and operators.

The dialog consists of two parts. The above part is where you browse classes and all occurrences of each class. In the below part you can edit the name, attributes and operators of a class.

All symbols that belong to the class you select in the Browse & Edit Class dialog will be affected by the changes you make in the dialog. If you want to edit the content in only one class symbol, you have to select the single symbol and edit the content in that symbol. For detailed information on how to edit class information, seeBrowse & Edit Class Dialog.

Figure 201 : The Browse & Edit Class dialog

Case Sensitivity

Case sensitivity applies to class symbols and it cannot be turned off in the Preference Manager, though case sensitivity for other symbols in the SDL editor can be switched off.

Class sensitivity applies to both the name field and the attribute field as well as the operator field.

If two classes have the same name but different cases (for example Person and person), they will be treated as two separate classes in the Browse & Edit Class dialog and will not be merged into a single class when generating code.

For a detailed description, see Set-Case-Sensitive.

Limitations

You can edit a class in this dialog when you have selected a single class symbol, but the dialog is not available if you select more than one class symbol.

If the class name contains incorrect syntax the dialog will not be displayed.

You cannot add syntax errors to your classes as the values you enter are syntactically checked.

Incorrect text in a symbol is not displayed in the dialog.

Edit the Diagram

  1. Double-click the class Xid or select the class Xid and then select Class.. on the Edit menu.
    The Browse & Edit Class dialog is displayed with the class name and its attributes or operators filled in.
    If there are more than one class with the same name, attributes or operators for all classes with the same name will be shown in the dialog.
  2. Select class Person from the Classes drop down menu. The content of the attributes and operators fields changes to that of the class Person.
  3. Change the name of the class Person to Employed in the Class Name field and click OK.
    The class name has changed to Employed in the diagram.
  4. Open the Browse & Edit Class dialog again and select either of the radio buttons Attributes or Operators to edit or view the attributes or operators of the class Employed.
    The list of the attributes or operators is displayed in the field below the radio buttons.
  5. You can now edit the information in the Name, Parameters, Sort and Body Code fields.
    The Parameters and Body Code fields are for operators only.
  6. Click OK.
    The dialog is closed and all appropriate class symbols in the current SDL diagram are updated.

http://www.ibm.com/rational
Contents Index Previous Next