Class Diagram Editor

The Class Diagram Editor is used to show and manipulate the static structure of your code, represented as UML Class Diagrams.

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

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

Creating New Class Diagrams

To create a new Class Diagram:

  1. Select the desired package in the Model Explorer or Project View.
  2. Either:
    • invoke Edit | New | Class Diagram.
      or
    • right-click on the selection and invoke New | Class Diagram from the pop up menu.
      New Class Diagram context menu
      or
    • press Alt + Insert
      New Class Diagram
      and invoke Class Diagram.
  3. Enter a name for the new Class Diagram.
    Enter new Class Diagram name
  4. Confirm the new Class Diagram creation by pressing OK and a new empty Class Diagram will show up in the editor.
    New empty Class Diagram editor

Deleting a Class Diagram

To delete an existing Class Diagram:

  1. Select the desired Class 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 Class Diagram(s) deletion.
    Delete Class Diagram dialog

Opening a Class Diagram

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