Quick Refactoring

Quick Extract Method

After selecting a set of lines, Quick Extract Method creates a new method with the selected lines as the body. It discovers any undeclared variables and creates them as parameters to the new method. The ex- tracted method is created in the same scope as the original method. Quick Extract Method is only avail- able for C++, C#, Java, and Slick-C® .

Figure 6.30. Quick Extract Method Refactoring

199

Page 221
Image 221
Slick V3.3 manual Quick Extract Method Refactoring