"Move method" as implemented by JRefactory moves to the class of a parameter. The parameter becomes "this".
(http://jrefactory.sourceforge.net/csr-movemethod.html)
 
However I think this is`rather restrictive. It would be great to move to a field class automatically. I guess we can always do a Introduce Parameter first. But again it is adding artificial steps that can be automated.
 
Jacques
 
"Mike Aizatsky" <[EMAIL PROTECTED]> wrote in message ai3oj7$cil$[EMAIL PROTECTED]">news:ai3oj7$cil$[EMAIL PROTECTED]...
> Michael,
>
> You've described only one part of refactoring... It's just the same, which
> "make static" and "move" do. There's one much more difficult part:
> adopting the method at the new location. I.e. "introducing this".
>
> --
> Best regards,
> Mike Aizatsky.
> ------------------------------
> JetBrains, Inc / IntelliJ Software
>
http://www.intellij.com
> "Develop with pleasure!"
>
>

Reply via email to