RAD Studio (Common)
ContentsIndex
PreviousUpNext
Refactoring: Renaming Elements

To rename a local variable or parameter, right-click a variable name in the source code and choose Refactoring Rename on the main menu. For the other code elements, you can use the source-code Editor, the Diagram View, the Model View, or the Refactoring main menu.

Tip: In order to make renaming overloads possible, the method should have its override
property set to true.

To rename an element:

  1. Select element in the Diagram View or in the Model View.
    Tip: In the editor, place the mouse cursor on the element name.
  2. Choose RefactoringRename on the context menu or on the main menu.
  3. In the resulting dialog box, specify new name of the element.
  4. Click OK.
  5. In the Refactoring window that opens, review the refactoring before committing to it. Click the Perform refactoring button to complete the move.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!