Editing code in external editors for capsule-based models

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

  1. Set the preference to use an external editor:
    1. In the diagram editor, right-click an element to edit; then click Show Code View.
    2. In the Code View editor, right-click an editable area; then click Preferences.
    3. On the Code Editor page, click Browse and select an external editor.
    4. Click Apply.
    5. Click OK.
  2. Open the external editor:
    1. In the diagram editor, right-click an element to edit; then click Show Code View.
    2. 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.

Feedback