A dialog based user interface guides you through the steps necessary to execute a selected refactoring. Depending on the complexity of the refactoring, either a wizard or a simple dialog is used to gather information that is required for the refactoring.
The input pages gather information that is required for the refactoring. After you have provided the required input you can click Ok or Finish to carry out the refactoring without previewing the results. If you want to preview the changes press Preview or Next
The JDT allows you to preview the results of a refactoring action before you execute it.
The preview page consists of two parts:
A tree at the top containing all Java elements affected by the refactoring. Each top-level node in the tree represents one compilation unit.
Some refactorings allow to filter the tree by different kind of changes made by the refactoring. Use the Filter Changes drop down to change the filtering.
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.
It is also possible to rename a Java element without showing a dialog. This can be enabled and disabled on the Java preference page. If enabled, then the new name for an Java element can be typed into the editor when the rename refactoring is invoked.