Refactoring with preview
-
Activate a refactoring command. For example, rename a type by selecting it in the Outline view and choosing
Refactor > Rename from its pop-up menu.
-
The Refactoring Parameters page prompts you for information necessary for the action. For example, the Rename Type Refactoring dialog
asks you for the new name for the selected type.
- Provide the necessary data on the parameters page, and then click Preview.
-
If problems are anticipated, then the problems page comes to the front to display them.
- If a fatal problem was anticipated, then only the Back
and Cancel buttons are enabled, and you are prevented
from carrying out the refactoring. If the problems are related to data
provided on the parameters page, click Back and attempt
to remedy the problem. Otherwise, click Cancel to close
the dialog.
- If other kinds of problems were anticipated, you can click Continue
to acknowledge the problems and move on to the preview page.
The Refactoring Preview page opens.
- Click OK to execute the refactoring and close the dialog.
Refactoring support
Refactoring without preview
Previewing refactoring changes
Undoing a refactoring operation
Redoing a refactoring operation
Refactoring actions
Refactoring dialogs
Java preferences