Extract Variable Dialog
Generally, this dialog is used to extract new variables. Depending on the language, there may be additional options, for example:
- In Java, you can declare the new variable
To make this dialog accessible for Java, you have to disable in-place refactoring in the editor settings.
In ActionScript, you can choose to extract a constant rather than a variable, and specify the variable type.
Select the type of the new variable.
Specify the name for the new variable.
Replace all occurrences
Select this checkbox to replace all the occurrences of the selected expression (if more than one occurrence of the selected expression is found).
Select this option to declare the new variable
|Choose to extract a (global) variable, a constant, or a local variable: |
Select this option to extract a constant rather than a variable.