Software Pretty Printer JRefactory Printing Elixir Extensions Line Numbering Metrics Stub Generator Dev Utilities Requested Features Release Notes Download Contributors |  | ## Software::JRefactory - Rename Field |
#### Rename Field This refactoring renames a field. This software has been unit tested, I have about 7 unit tests that cover the implemented functionality. However, the rename field refactoring should be considered in beta release. To rename a field, right click on the field. Select the field refactorings menu item and then the Rename Field menu item. Enter the new name of the field. If the field has private scope, the refactoring just renames all the field accesses in the current file. I havea lot of confidence that this will work. If the field has public scope, I have less confidence that I have all the cases. In addition to renaming all the locations where the field is used, this refactoring applies the pretty printer to all files that use a field with the same name. This will allow your build software - such as ant - to find locations where the field was used but this refactoring tool failed to find the field. If this refactoring fails in some way, you can use the undo operation to get back to where you were.
| Last Modified: June 6, 2000 |