Sequence Diagram Editor

The Sequence Diagram Editor is used to show the dynamic structure of your code, represented as UML Sequence Diagrams.

The Round-trip Engineering process described in the section "Round-trip Engineering", works the same with the Sequence Diagram Editor. Changes to source code are automatically updated in the diagrams.

Sequence Diagrams are organized by package, including the Model. You may create as many Sequence Diagrams as you want per package.

To learn how to customize how Sequence Diagrams are displayed go the Settings section.

Creating New Sequence Diagrams

To create a new Sequence Diagram:

  1. Select the desired operation in the Model Explorer or Project View.
  2. Either:
    • invoke Edit | New | Sequence Diagram.
      or
    • right-click on the selection and invoke New | Sequence Diagram from the pop up menu.
      New Sequence Diagram context menu
      or
    • press Alt + Insert
      New Sequence Diagram
      and invoke Sequence Diagram.
  3. Enter a name for the new Sequence Diagram.
    Enter new Sequence Diagram name
  4. Confirm the new Sequence Diagram creation by pressing OK and the new generated Sequence Diagram will show up in the editor.
    New generated Sequence Diagram editor
Alternatively, you may generate a Sequence Diagram from the source code editor:
  1. Move the caret anywhere within the desired method's code.
  2. Press Alt + Insert
    Generate Sequence Diagram
    and invoke Sequence Diagram

Deleting a Sequence Diagram

To delete an existing Sequence Diagram:

  1. Select the desired Sequence Diagram(s) in the Model Explorer.
  2. Either:
    • invoke Edit | Delete.
      or
    • right-click on the selection and invoke Delete from the pop up menu.
      Delete menu
      or
    • press Delete.
  3. Confirm the Sequence Diagram(s) deletion.
    Delete Sequence Diagram dialog

Opening a Sequence Diagram

To open a Sequence Diagram in the editor, either double-click with the mouse on the desired Sequence Diagram node, or select the Sequence Diagram in the Model Explorer and then press Ctrl + Enter.