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 Javadoc references to the renamed
field, select the Update references in Javadoc
comments checkbox.
If you want to update references in regular (not Javadoc)
comments, select the Update references in regular
comments checkbox.
If you want to update references in string literals, select
the Update references in string literals
checkbox.
If the wizard 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 Next to perform
a quick refactoring, or click Finish
to perform a controlled refactoring.
Note: The wizard detects getters / setters using preferences set on
Window > Preferences > Java > Code Generation preference page
(in the Getter and Setter creation group).
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.