Parameters page
Parameters Page for the Rename Field Refactoring Command
-
In the Enter new name text field, type a new name for the field that you're renaming.
-
If you do not want to update references to the renamed field, deselect the Update references to the renamed element checkbox.
-
If you want to update textual references in strings and comments which are referring to the renamed field, select the Update textual matches in comments and strings checkbox.
-
If the refactoring finds accessor (getter/setter) methods to the field you're renaming, it offers you to rename them as well (and update all references to them):
-
If you want to rename the getter, select the Rename Getter checkbox
-
If you want to rename the setter, select the Rename Setter checkbox
- Click OK to perform a quick refactoring, or click Preview
to perform a controlled refactoring.
Note: The refactoring detects getters / setters using preferences
set on Window > Preferences > Java > Code Style
preference page.
Note: References in Javadoc comments, regular comments and string
literals are updated based on textual matching. It is recommended that you perform
a controlled refactoring and review the suggested changes if you select one of
these options.
Related Topics: