Refactoring

You can refactor elements.

About this task

Do the following:

Procedure

  1. Right-click on an element and select Refactor > Rename (also Refactor > Rename from the menu or Alt+Shift+R), Refactor > Move (also Refactor > Move from the menu or Alt+Shift+V), or an Eclipse refactoring option.
  2. Complete the dialog for the selected operation.
    The Rename dialog asks for the new name of the element. The Move dialog asks for the new location for the element.

Results

Refactoring applies to all files, folders, and packages except the top levels in the source hierarchy. The source hierarchy is updated to reflect the refactoring. The name of the base file is updated as necessary.