Refactoring - Moving Members

From RAD Studio
Jump to: navigation, search

Go Up to Refactoring Procedures Index


This topic explains how to use the "Move members" operation.

To move a static member to a different class:

  1. Select one or more static members in the Code Editor or the Modeling's Diagram View or Model View.
  2. On the main menu choose Refactor > Move.

    Tip: Alternatively, right-click on the selection and choose Refactor > Move Members on the context menu

  3. In the Move Members dialog, use the Move Members field to select which static members to move. You can deselect/select the static members by clearing/checking the check box next to the name of the member
  4. Use the To field to enter the fully-qualified name for the target class where the selected code element or elements will reside.
  5. Click OK.

See Also