A wizard based user interface guides you through the steps necessary to execute a refactoring. A refactoring wizard consists of 1 - n parameter pages, a preview page and a problem page.
These pages gather information that is required for the refactoring. For example, the Pull Up refactoring uses two pages to gather the methods and fields to be pulled up and to gather the obsolete methods and fields in subclasses that can be deleted. The user can navigate the parameter pages using the Next > and < Back button.
After you have provided the required information, you can click Finish to carry out the refactoring without previewing the results. If you want to preview the changes press Next >.
The JDT allows you to preview the results of a refactoring action before you execute it.
The preview page consists of two parts:
The Refactoring Problem page indicates if there are suspected, potential, or definite problems with the refactoring action you are attempting.
Four types of problems are possible:
If there aren't any stop problems then the refactoring can be carried out by pressing the Finish button. To preview the results of the refactoring action, press the Next > button.
Previewing refactoring changes
Undoing a refactoring operation
Redoing a refactoring operation