Introduce Variable dialog box

This is a feature of JBuilder SE and Enterprise.

The Introduce Variable refactoring replaces the result of a complex expression, or part of the expression, with a temporary variable name. To display this dialog box, select the complex expression you want to replace, right-click and choose Introduce Variable.

Name

The name of the new variable.

Type

The Java type of the variable. This is read-only.

Expression

The selected expression. This is read-only.

Include All Read Expressions

Replaces all reads from that expression. If this option is off, only the current selection is replaced.

OK

Completes the refactoring. The refactoring is automatically completed.

Choose Edit|Undo to undo the changes.

See also