When editing a JADE method, you can promote a local method constant to a constant on the type in which the method is defined.
To promote a local constant to a type constant
Select the local constant reference in the method (in the logic or in the constants section).
Select the Promote to Type Constant command from the Refactor submenu of the Edit menu. The Add constant to schema-name::type-name dialog is then displayed. The name of the constant in the dialog is set to the local constant name. The value and the type of the constant are set in the editor pane.
Set any attributes that you require and then click the OK button.
The constant is then added to the type (that is, the class or primitive type) and the local constant definition is removed from the method.
If the line containing the constant definition will then be empty, the entire line is removed. If there is any other text on the line (including comments), only the constant definition portion is removed.
To undo the text change in the method, press Ctrl+Z. The constant definition is not returned.