Declare Enum Constant

An error is triggered when using a non-existing enumerated type constant. DVT provides an easy way to declare the missing constant.

../../_images/e_quick_fix_extend_type_list.png

Place the editor cursor on the error’s line and press Ctrl+1, select Declare enumerated type constant … from the list of quick fix proposals and press Enter.

../../_images/e_quick_fix_extend_type_after.png