Showing related C/C++ diagram elements based on relationships

You can populate a class diagram by showing existing C/C++ elements that are related in specific types of relationships to the selected C/C++ elements in the diagram.

You must have a class diagram open in the C/C++ perspective.
To show related C/C++ elements based on relationships:
  1. In the diagram editor, right-click a C/C++ classifier or selected classifiers against which you want to show related C/C++ elements; then click Filters > Show Related Elements.
  2. In the Show Related Elements in Diagram window, click Details to expand the window or complete one of the following steps:
    • To display all the relationships of all the classifiers, click Show All Relationships.
    • To display all the first level generalization parent relationships to the classifier, click Immediate C++ Base classes.
    • To display all the first level generalization child relationships to the classifier, click Immediate C++ Derived classes.
    • To display all the generalization relationships to the classifier, click C++ Inheritance Tree.
    • When the selected item is a C/C++ header file, to display all the related C/C++ header files to that header file, click C++ #include subtree.
    • When the selected item is a C/C++ header file, to display all the related C/C++ header files and source files to that header file, click C++ #include graph.
    • To display all the C/C++ header files and source files in an hierarchical order, click Nested Hierarchy.
    • To display all the relationships of the selected classifier, click Custom Query.
  3. In the relationship types window, you can modify the relationship selections.
  4. Click OK.

Parent topic: Populating class diagrams

Related concepts
Relationships

Related tasks
Populating class diagrams with C/C++ elements
Populating class diagrams with C/C++ elements based on type

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.