You can populate your model with node elements (classes, interfaces and enumerations), and delete them from diagram, or from your project. When a node element is created in a UML Class diagram, the corresponding stub file is created in the current package.
In a similar way, IntelliJ IDEA helps create members (fields, methods, or constructors) in the node elements.
It is also possible to clarify the contents of diagrams with notes, which are created same way.
- Do one of the following:
- Right-click the diagram background, or a package where a new node element should be created. Next, on the context menu, point to , and choose element type from the submenu.
- Press Alt+Insert, and choose element type from the pop-up frame.
- Specify the element name, or type the contents of a note, and click OK.
- Select a node element in a diagram.
- Do one of the following:
- On the context menu of the selection, point to , and then choose the member type on the submenu.
- Press Alt+Insert, and choose member type from the pop-up frame.
- Depending on the selected member type (field, constant, method, or constructor), specify the member name and the other parameters. See preliminary results in the Preview pane of each dialog.
See Also
Procedures:
Reference:
- Class Diagram Toolbar, Context Menu and Legend
- Add New Field Or Constant
- Create New Constructor
- Create New Method
Language and Framework-Specific Guidelines:
External Links:
