Creating an Enumeration Type

Context

An enumeration type allows you to define an abstract type that holds a list of values of the same primitive Java type that are logically related in a given context.

Procedure

  1. Locate the Project Resources node and double-click the node.

    For more information, see Locating the Project Resources Node

  2. In the Project Resources editor, choose the Enumeration Types tab.
  3. In the enumeration type editor that appears, choose the Add button.
  4. In the dialog box that appears, enter a valid name for the enumeration type in the relevant field.
  5. In the drop down menu, choose a Java type.
  6. In the space provided, enter the corresponding values for the enumeration type.
  7. Choose OK .