Creating C/C++ enumerations

You can create C/C++ enumerations in the diagram editor.
You must be in the C/C++ perspective and have a diagram open in the diagram editor.

To create a C/C++ enumeration:

  1. In the Palette, click C++ Enum and click an empty space in a class diagram.
  2. In the New C/C++ Enum wizard, to add the enumeration to an existing namespace, select the Namespace check box and specify a namespace.
  3. In the Name field, type the name of the enumeration.
  4. In the Source folder field, specify the source folder for the new file.
  5. To specify a file name, clear the Use default file check box and specify a file in the Filename field.
  6. Click Finish.
Tip: You can also use the action bar to add enumerations to C/C++ class diagrams.
Related tasks
Creating C/C++ classes
Modifying C/C++ classes or data types
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
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