Refactoring Source Files

See Also

You can rename some or all occurrences of an element in your project.

To find and rename an element in your project:

  1. Do one of the following:
  2. In the Rename dialog box, type the new name in the New Name test field and click Preview.
  3. The Refactoring window opens with a tree view of the occurrences of the element in your project on the left, and a split panel showing the selected source file and the refactored source file on the right.
  4. To rename all occurrences of the element in your project, click Do Refactoring.
  5. If you want to change only some of the occurrences of the element, deselect the checkboxes in the tree view for the files in which you do not want it changed, or the individual occurrences that you do not want changed. Then click Do Refactoring to change only the occurrences that are still selected.
See Also
Finding Class, Method, and Fields Usages

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.