When you edit the code for capsule-based UML model elements,
you can use an external editor of your choice. You must first set
a preference to use an external editor.
About this task
To edit code with an external editor:
Procedure
- Set the preference to use an external editor:
- In the diagram editor, right-click an element to edit;
then click Show Code View.
- In the Code View editor, right-click
an editable area; then click Preferences.
- On the Code Editor page, click Browse and select an external editor.
- Click Apply.
- Click OK.
- Open the external editor:
- In the diagram editor, right-click an element to edit;
then click Show Code View.
- In the Code View editor, right-click
an editable item; then select Show Source In Editor or Launch External Editor. Save the edits
before you close the editor.
Note: To save the edits that you make in the external editor
to the model, manually save the edits before you close the external
editor. When a passive class or a capsule owns at least one operation,
by default, the first operation of that passive class or capsule is
selected. The Code View shows if the capsule or the passive class
do not own any operations.
