To edit objects:
From the menubar, select Window > Show View > Properties.
Select the element from either the UML Navigator or Diagram view.
Edit the fields in the Properties view as necessary.
To rename an object, choose one of the following methods:
Using in-place editing:
In the Diagram view, double click the element's name to enable in-place editing.
Enter the new name.
Press Enter or click in the diagram to apply the changes.
Using the context menu:
Right click on the element in either the UML Navigator or Diagram view.
Select Rename from the context menu.
Enter the new name.
Click Enter or click in the diagram to apply the changes.
Using the Properties view:
From the menubar, select Window > Show View > Properties.
Select the element in either the UML Navigator or Diagram view.
Edit the name field in the Properties view.
Press Enter or click in the diagram to apply the changes.
To create a new class or interface:
Select the object on the diagram.
Right click on the element and choose New > Class or New > Interface.
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.
To link an object to a class:
Select the object on the sequence diagram.
Right click on the object and choose Select Class from the context menu. The Select Class command expands to display the following:
A submenu that shows any classes that are "local" to the diagram.
An option named "More" for browsing available classes for you to associate with the object.
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.
To unlink a class from an object:
Select the object on the diagram.
Right click and select Unlink Class from the context menu.
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).