Refactoring - Changing Parameters

From RAD Studio
Jump to: navigation, search

Go Up to Refactoring Procedures Index


This topic explains how to use the "Change parameters" operation.

To change parameters, follow these steps:

  1. Select method in the Diagram View, in the Model View, or in the Editor.
  2. Choose Refactor > Change Parameters from the main menu.

    Tip: Alternatively, you can right-click and choose Refactor > Change Parameters on the context menu.

  3. In the resulting dialog, select parameter from the list and choose the desired action:
    • To add a new parameter, click Add and specify the parameter name, type, and default value.
    • To delete parameter, click Remove.
    • To rename parameter, click the Name field, and then click Edit. The Edit Parameter box opens.
  4. If applicable, check Refactor Ancestors.
  5. Check Preview Usages if necessary.
    • If this option is checked when you click OK, the Refactoring window opens, allowing you to review the refactoring before committing to it. Click the Perform refactoring button to complete the changes. You can use the Undo and Redo commands as necessary once you have performed the refactoring.
    • If this option is cleared when you click OK, the Refactoring window opens with the change completed. You can use the Undo and Redo commands as necessary once you have performed the refactoring.

See Also