Adding items to a component definition diagram (IDL code)
You can add existing items to a Component Definition diagram through drag-and-drop operations and through populate commands.
To add a component to a component definition diagram:
Drag the Component from an appropriate pane to the background of the diagram.
Alternatively,
On the diagram, right-click the background of the diagram, and then select Populate > Components.
Components that are owned by the Package or Model that owns the Component Definition Diagram and are not shown on the diagram are added to the diagram.
To add a connector to a component definition diagram:
Drag the Connector from an appropriate pane to the background of the diagram.
Alternatively,
On the diagram, right-click the background of the diagram, and then select Populate > Connectors.
Connectors that are owned by the Package or Model that owns the Component Definition Diagram and are not shown on the diagram are added to the diagram.
To add an interface to a component definition diagram:
Drag the Interface from an appropriate pane to the background of the diagram.
Alternatively,
On the diagram, right-click the background of the diagram, and then select Populate > Interfaces.
Interfaces that are owned by the Package or Model that owns the Component Definition Diagram and are not shown on the diagram are added to the diagram.
To add a port type to a component definition diagram:
Drag the Port Type from an appropriate pane to the background of the diagram.
Alternatively,
On the diagram, right-click the background of the diagram, and then select Populate > Port Types.
Connectors that are owned by the Package or Model that owns the Component Definition Diagram and are not shown on the diagram are added to the diagram.
To add an item's missing generalizations to a component definition diagram:
On the diagram, right-click the item whose Generalizations you want to add, and then select Populate > Inheritance.
If items required to show the clicked item's Generalizations are not shown on the diagram, those items are added to the diagram.
To add missing generalizations to a component definition diagram:
Right-click the background of the diagram, and then select Populate > Inheritance.
Any missing Generalizations between the items shown on the diagrams are added to the diagram.