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

 All Forums
 Visual Assist
 Technical Support
 VA Outline: Request
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomato Guru

527 Posts

Posted - Jul 19 2007 :  11:27:06 AM  Show Profile  Reply with Quote
Since we can multi-select in VA Outline using Ctrl-Click and Shift-Click. Could we get some more refactoring items added to the context menu, and have VA X Walk the selection and perform the selected refactoring method on each item?

I would like to see Document method added to the context menu in the outline, for starters.

So heres an example with multi select, and having VA X run Create Implementation and Document method on all items I select in VA Outline.

I create a new class in a header and declare a bunch of methods. I already have the cpp file created and added to my project. I select all my methods in VA Outline, right click and choose 'Create Implementation. VA X walks what is selected and for each item runs 'Create Implementation.' After that is complete I move over to the CPP file, selecting the same methods, and then click 'Document Method.' Again, VA X walks the selection and runs 'Document Method' on each item I have selected. Saving me the time of having to click on each method in the source window and bring up the refactor menu to do a 'Create Implementation' and a 'Document Method.'

I could also see this being useful for 'Move Implementation to Source', and possibly 'Change Signature.'

I know I put in a refactor request long ago to allow certain refactor methods to run multiple times, if you have alot of methods in your selection. I think this would satisfy that request.

Thoughts, and any edge cases I'm not thinking about feline? :)

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Edited by - rhummer on Jul 19 2007 11:27:24 AM

Whole Tomato Software

United Kingdom
17100 Posts

Posted - Jul 19 2007 :  12:12:16 PM  Show Profile  Reply with Quote
I like this idea, it makes a lot of sense, and it is a logic extension of allowing refactoring to work on more than one item. I have put in a feature request for this, covering the refactoring operations:

Create Declaration
Create Implementation
Document Method
Encapsulate Field
Move Implementation to Source File

Change Signature is out, for the simple reason that it is interactive. It does not make sense to select 15 class member functions and trigger Change Signature once for all of them, since as you work through the 15 dialogs, and Find References is triggered 15 times, you will quickly loose track of where you are and what you are doing.


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

Whole Tomato Software

5566 Posts

Posted - Oct 29 2012 :  10:55:35 AM  Show Profile  Reply with Quote
Move Implementation to Source for an entire class is case=68102 and is implemented in build 1918. Invoke the operation on the class declaration itself -- no need to highlight all method declarations.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000