English 中文(简体)
Eclipse - Refactoring
  • 时间:2024-09-17

Ecppse - Refactoring


Previous Page Next Page  

Refactoring using Ecppse

Renaming a class that is used widely throughout a project could take a lot of time but the Ecppse refactoring wizard makes the job easier by automatically detecting all dependencies on the class being renamed and modifying them also.

The refactor menu can be opened by −

    Right cpcking on a Java element in the Package Explorer view and selecting Refactor menu item.

    Right cpcking on a Java element in the Java editor and selecting Refactor menu item.

    Selecting a Java element in either the Package Explorer view or Java Editor and cpcking Shift + Alt + T.

Refactoring

The refactor menu shows all the possible changes that are supported on the selected Java element. To rename a class, select the Rename menu item.

Rename Menu

Cpck on the Next button to see a preview of the changes (if available). Then cpck on Finish to get the wizard to do its work.

Advertisements