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 the Component Diagram button 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. Click to begin the upper, left corner of the component, drag to the lower right corner, 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 main 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.

Feedback