Creating components for a component diagram

When you create a component, you specify all the software code that it comprises: libraries, header files, and any other source files. Component diagrams generate code for components that are labeled with the «Executable» or «Library» stereotype.

Procedure

  1. Click Component Diagram Component Diagram button on Diagram Tools.
  2. Do one of the following actions:
    1. Click once in the diagram to create a component with the default dimensions.
    2. To begin, click on the component, drag diagonally, and release.
  3. Edit the default name, then press Enter.

Results

The new component is displayed in the diagram and in the browser, either in the Components folder under the master project node, or nested under another component associated with this diagram.

Note: You can draw a component within another component; the browser will display the nested component accordingly.