A wizard guides you through the steps necessary to execute a selected refactoring.
Refactorings are available in the Refactor menu of the menu bar or in context menus.
This page gathers information that is required for the refactoring. For example, a Rename Refactoring Parameters page asks you for the new name for the Java element.
After you have provided all required information on this page, you can click Finish to carry out the refactoring without previewing the results.
The JDT allows you to preview the results of a refactoring action before you finally choose to carry it out.
The preview page consists of two parts:
The Refactoring Problem page tells you if there is a suspected, potential, or definite problem with the refactoring action you are attempting to do.
Four kinds of problems are possible:
In the Refactoring preference page (Window > Preferences > Java > Refactoring), you can select the default level for problems to be displayed when you are carrying out a refactoring without a preview, (that is, you click Finish instead of Next from the Refactoring Parameters page).
Refactoring without preview
Refactoring with preview
Previewing refactoring changes
Undoing a refactoring operation
Redoing a refactoring operation