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