Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Extract Method Implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

studoot
Senior Member

35 Posts

Posted - Dec 21 2006 :  06:08:52 AM  Show Profile  Reply with Quote
I've just done my first 'extract method' in C++, and was disappointed to see the method implementation in the header file. Would it be feasible to have some method of getting the implementation in a .cpp file instead. I'm thinking some thing like this :- If the larger method that you're extracting code from is in a header, insert the new method's implementation there. If the larger method is in a .cpp file, insert the new method's implementation in that .cpp file.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Dec 21 2006 :  07:29:55 AM  Show Profile  Reply with Quote
This is by design. Unless we ask lots of questions, or have far to many options, we can never satisfy everyone. So VA's refactoring is designed to work in small steps that can then be "chained together" to produce what ever final result you want.

In this case you want Extract Method followed by Move Implementation to Source File

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000