Refactoring

"Team refactoring" involves renaming or moving files and folders that have been placed under version control in a shared environment.

Note: When conflicts occur, the client provides immediate feedback, and a dialog box opens asking you to confirm the change.
  1. In the Navigator or Package Explorer, select an item.
  2. Right-click and choose either:
    • Move
    • Rename
  3. Do one of the following:
    • For a move, select the destination on the Folder Selection dialog box, and click OK.
    • For a rename, type the new name, and press Enter.
    Note: Before renaming a folder, click F5 to perform a refresh in Eclipse.
    If you use the Move command on your project items and you try to check in your changes, Eclipse reports this and suggests that you use the Move action in the Synchronize view to preserve the resource history.
  4. Open the Team Synchronizing perspective's Synchronize view to review any items reflecting a [moved] status.
  5. Multi-select any [moved] items in the Synchronize view and choose Move.