Procedure
- Double-click the relevant enum in the browser
to open its Features window.
- Select the Enum Values tab.
- Click <new> in
the list.
- Click the Name column
to change the default name assigned by IBM® Rational® Rhapsody®.
- Click the Value column
to define the argument values that will be used to instantiate this
instance of the enum (if you are providing more than one argument,
separate them with commas).
- Optional: Add comments for the
constants you have defined.
- Click OK.
Results
After they have been defined, enum constants
appear underneath the relevant enum in the browser.
Note: Rational Rhapsody does
not support the definition of anonymous classes that extend enum constants.