From the course: Learning Eclipse

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Refactoring

Refactoring

From the course: Learning Eclipse

Start my 1-month free trial

Refactoring

- [Instructor] Any really good developer knows how to refactor. And they understand that it is an art form that they must do it well. And Eclipse gives us many options in order to do that. So refactoring is essentially the process of reorganizing your code for it to be more efficient and concise, especially by eliminating duplication. And part of refactoring can just be something like renaming a class, especially a class that's widely used throughout the project. And that could take a lot of time, but if you use the refactoring wizard the job becomes a lot easier. To launch the wizard there's three different ways. Let's say I wanted to rename the time class. I can highlight in the project explorer and hold the shift key down, alt and T and it'll give me some refactoring features such as extract interface, extract superclass, renaming, and those options are also available the other ways that we can get into it. Just by clicking refactor from the menu bar, or within the editor we can…

Contents