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.
|Type||Select the type of the new variable.||ActionScript|
|Name||Specify the name for the new variable.||All|
|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).||All|
|Declare final||Select this option to declare the new variable ||Java|
|Make constant||Select this option to extract a constant rather than a variable.||ActionScript|