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
 Technical Support
 Refactoring question?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

schoenherr
Tomato Guru

Germany
160 Posts

Posted - Oct 09 2006 :  03:46:47 AM  Show Profile  Reply with Quote
can anybody explain what the expression $MethodBody$ in autotext entry "CreateImplementaion2 is for ?

thanks
m.schoenherr

Edited by - schoenherr on Oct 09 2006 03:47:35 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 09 2006 :  07:03:32 AM  Show Profile  Reply with Quote
I am not sure it is ever used, at least not now. Using VA 1538 there are 4 refactoring entries for C++, and "Refactor Extract Method" also has a $MethodBody$ entry.

From memory "Refactor Create Implementation" used to be used by both Create Implementation and Extract Method, but now there are two separate rules for these two operations.

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 09 2006 :  2:36:53 PM  Show Profile  Reply with Quote
it seems Create Implementation can be used for "Move Implementation" and "Extract Method", and when these are happening $MethodBody$ is required. the rest of the time it is just ignored.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 09 2006 :  3:19:27 PM  Show Profile  Reply with Quote
Autotext for Create Implementation is used also by Move Implementation to Source File so $MethodBody$ needs to remain where it is.

As well, the autotext entry for Create Implementation is used by Extract Method when programming in pure C. (The entry for Extract Method in not used.) $MethodBody$ tells Extract Method where to place your implementation.

Leave $MethodBody$ where it is and you'll be fine. It gets resolved to nothing when not needed.

We updated our documentation accordingly.

http://www.wholetomato.com/products/features/createImplementation.asp

Edited by - support on Oct 09 2006 3:26:45 PM
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