Refactor

Eclipse supports two types of refactoring operations:
  • Moving an object to a different directory.
  • Renaming an object.

When you complete either of these operations, the Rename command is invoked to record the change of pathname in the repository. The results are displayed in the AccuRev Console View.

Note: The Eclipse Delete command removes an object from local disk storage, but does not perform any AccuRev command. (In particular, it does not perform a Defunct command). If you Delete a version-controlled element, its status becomes (missing).
Note: Do not use the Move or Rename commands when you are not logged in to an AccuRev Server. Doing so causes changes to the Eclipse workspace but not to the AccuRev workspace. Visual cues indicate that you are not logged in to the AccuRev Server, including a greyed-out repository decoration on the root of the Package Explorer tree and missing decorations on files and directories. See Setting Label Decorations for more information.

Move

Eclipse supports moving an object to a different directory, using either of these methods:

  • Right-click the object and select Refactor > Move from the context menu.
  • Drag-and-drop the object from one directory to another.
Note: Do not use the Move command to move an object from one Eclipse project to a project that is part of a different AccuRev workspace. The object will be moved, but the AccuRev Rename command will not be invoked. The object will have (missing) status in the source location and (external) status in the destination location.