Rename Variable dialog box

This is a feature of JBuilder SE and Enterprise.

The Rename Variable dialog box renames a local variable. Rename refactoring a local variable renames the declaration and usages of that variable to the new name. Note that a method parameter is treated as a local variable.

To display this dialog box, open the class source file where the local variable is declared in the editor and select the local variable you want to rename. Right-click and choose Rename.

Class

The class in which this local variable is located. This field is read-only.

Old Name

The existing name of the local variable.

New Name

The new name of the local variable.

View References Before Refactoring

Displays the potential changes in the Refactoring tab of the message pane. The Refactoring button in the toolbar must be selected in order to complete the refactoring.

OK

Displays the Refactoring tab (if the preview option is selected) or completes the refactoring.

See also