
When you need to move some class functionality into another class, it might be easily done by searching for corresponding methods via references of some common variable (Ctrl+Shift+G) and then using Eclipse's refactoring functionality "Move" which allows to move selected methods into some other class.
But it also might happen that you need to copy methods. For instance if you need pretty alike functionality in other class - changing a bit these copied methods is way more comfortable than writing from scratch.
How would/do you act?
PS. Don't think and talk of code duplication issues please, definitely i am not going to have common functionality in two separate methods. Just take it as challenge of copying batch of methods from class A to class B. For whatever reason. And the screenshot is just an illustration of "moving" functionality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With