Using AutoLink Labels

The AutoLink Labels command displays a dialog if there are operations on the diagram that were previously saved and unlinked using the Autofix dialog.

For example, if you have a message linked to an operation in a class, but you decide to delete the operation from the class, the sequence/collaboration diagram link becomes highlighted in red as shown below:

To correct this problem:

  1. Right click on the diagram background, and select AutoFix. The Solve Problems dialog displays.


  2. In the dialog, select Unlink and Save Text.


  3. Click Accept Solutions, and click Finish. Operations that are saved and unlinked are no longer highlighted in red on the sequence/collaboration diagram. They are enclosed in single quotes.


  4. Later, you may decide to relink the message to a new operation. To do this, right click on the diagram background, and select AutoLink Labels. The Convert labels to operations dialog displays:



  5. Select the appropriate message to link from the list on the left.


  6. Choose one of the actions from the Available Solutions list. For example, choose "Select Method" from the list.


  7. Under Solution Actions, click Select Method. The Select Operation dialog displays.


  8. Select an operation, and click OK.


  9. Click Finish. The diagram is updated linking the message to the selected operation.