Quick extract method, Quick extract method refactoring – Slick EDIT V3.3 User Manual

Page 221

Advertising
background image

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

Quick Refactoring

199

Advertising