Modifying C/C++ classes or data types

You can modify names, fields (attributes), and methods (operations) of C/C++ classes and data types from class diagrams.
You must be in the C/C++ perspective and have a classifier open in the diagram editor.
To modify a C/C++ class or data type:
  1. In the diagram editor, click the name, an attribute, or an operation of a C/C++ class or data type and double-click. This will bring up the source code editor to allow for changes.
  2. In the source code editor, type your modifications to the source code and save the file.

The changes are saved to the source code file of the C/C++ class or data type and the changes appear in the class diagram.

Related concepts
UML class diagrams
Class diagrams and diagram elements
Related tasks
Creating C/C++ classes
Adding fields to C/C++ classes and data types
Adding methods to C/C++ classes and data types
Changing the visibility of C/C++ fields and methods
Changing the type for C/C++ fields in diagrams
Changing the return type for C/C++ methods in diagrams
Refactoring inline
Creating C/C++ enumerations
Adding enumeration literals to C/C++ enumerations
Deleting C/C++ elements from diagrams
Deleting C/C++ elements from projects
Renaming C/C++ elements
Creating relationships between C/C++ elements

Feedback