Editing C++ code in external editors for capsule-based models

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

  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. 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.

    Headers


Feedback