Extracting a method
To extract a method:
-
In an editor, select a set of statements or an expression from a method
body.
-
Do one of the following:
-
From the pop-up menu in the editor, select Refactor
> Extract Method.
-
From the menu bar, select Refactor > Extract
Method.
Java development tools (JDT)
Overriding a method
Renaming a method
Refactoring actions
Refactoring wizard
Refactoring preferences
Extract method errors