Refactoring without preview

1.      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.

2.      The Refactoring Parameters page prompts you for information necessary for the action. For example, the Rename Type Refactoring wizard asks you for a new name for the selected type.

3.      Provide the necessary data on the parameters page, and click Finish.

4.      If no problems more severe than the default level set in the Refactoring Preferences page (Window > Preferences > Java > Refactoring) are anticipated, then the refactoring is carried out.
If you chose in the Refactoring Preferences page to be notified of any problems after refactoring, then any detected problems are displayed at this time.
If problems more severe than the default level set in the refactoring preferences are anticipated, then the problems page comes to the front to display the errors.

5.      If a Stop problem was anticipated, then the Finish and Next buttons are disabled, 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 wizard.

6.      If other kinds of problems were anticipated, you can click Finish to acknowledge the problems. The refactoring is carried out, and the wizard closes.

Related concepts

Refactoring support

Related tasks

Refactoring with preview
Undoing a refactoring operation
Redoing a refactoring operation

Related reference

Refactoring actions
Refactoring wizard
Refactoring preferences

 
Copyright IBM Corporation 2000, 2002. All Rights Reserved.