Editing Objects

To edit objects:

  1. From the menubar, select Window > Show View > Properties.


  2. Select the element from either the UML Navigator or Diagram view.


  3. Edit the fields in the Properties view as necessary.

Renaming Objects

To rename an object, choose one of the following methods:

Using in-place editing:

  1. In the Diagram view, double click the element's name to enable in-place editing.


  2. Enter the new name.


  3. Press Enter or click in the diagram to apply the changes.

Using the context menu:

  1. Right click on the element in either the UML Navigator or Diagram view.


  2. Select Rename from the context menu.


  3. Enter the new name.


  4. Click Enter or click in the diagram to apply the changes.

Using the Properties view:

  1. From the menubar, select Window > Show View > Properties.


  2. Select the element in either the UML Navigator or Diagram view.


  3. Edit the name field in the Properties view.


  4. Press Enter or click in the diagram to apply the changes.

Creating a New Class or Interface

To create a new class or interface:

  1. Select the object on the diagram.


  2. Right click on the element and choose New > Class or New > Interface.


  3. The New Object's Class dialog displays. Use this dialog to create a new class.

NB: When creating a new interface, the New Object's Interface dialog displays.

Linking an Object to a Class

To link an object to a class:

  1. Select the object on the sequence diagram.


  2. Right click on the object and choose Select Class from the context menu. The Select Class command expands to display the following:


  3. Choose a class from the list, or select More to associate a class that is not local to the diagram.

TIP: You can associate multiple objects with the same class. Use CTRL + click to select the objects, and follow the steps above to associate the objects to a class.

Unlinking a Class from an Object

To unlink a class from an object:

  1. Select the object on the diagram.


  2. Right click and select Unlink Class from the context menu.

Showing a Class

Once a class has been associated with an object, use the context menu to show the class in the editor, resource navigator, package explorer, or model navigator. Right click on the element and select Show Class > In Editor (In Resource Navigator, In Package Explorer, or In Model Navigator).