Adding enumeration literals to C/C++ enumerations

You can add an enumeration literal to a C/C++ enumeration.

Before you begin

You must be in the C/C++ perspective and have a C/C++ domain modeling class diagrams open in the diagram editor.

About this task

To add an enumeration literal to a C/C++ enumeration, complete the following steps:

Procedure

  1. In the diagram editor, right-click a C/C++ enumeration; then click Add C/C++ > Enumeration Literal.
  2. In the New C/C++ Enumeration Literal wizard, in the Name field, type a name for the new enumeration literal.
  3. In the Value field, type an integer value for the new enumeration literal.
  4. Click Finish.

What to do next

Note: You can also use the action bar to add enumeration literals to C/C++ enumerations.

Feedback