When you edit the code (C, C++, Java and UAL) 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.
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.