Author:  Mike Atkinson Software
Release Notes
Download
Contributors

Previous Page

Software::JRefactory - Rename Field

Next Page

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.

Previous Page

Last Modified: October 7, 2003

Previous Page