Refactoring with Preview

1.

Activate a refactoring command. For example, rename a type by selecting it in the Outline view and choosing Refactor > Rename from its context menu.

2.

The refactoring parameters page prompts you for information necessary for the action. For example, the Rename Type Refactoring Wizard asks you for the new name for the selected type.

3.

Provide the necessary data on the parameters page, and then click Next.

4.

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 anticipated errors.

  • 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.
  • If other kinds of problems were anticipated, you can click Next to acknowledge the problems and move on to the preview page.

5.

The refactoring preview page is shown.

See Previewing Proposed Refactoring Changes

6.

Click Finish to execute the refactoring and close the wizard. If you chose in the refactoring preferences to be notified of any problems afterwards, then any detected problems are displayed at this time.