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
 Rename source files/classes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GennadiyKorol
Ketchup Master

Israel
54 Posts

Posted - Sep 12 2008 :  8:05:35 PM  Show Profile  Reply with Quote
Sometimes you need to rename a class, which involves renaming its file name as well. But then it involves updating all #include references to that file in all other source files.

This is something that right now you have to manually search/replace and is a bothersome routine.

In Eclipse you just apply refactoring on a class and it automatically does all this job for you.

It would be very nice to have this in VAX (optional in case some disagree with the convention).

Thanks!

Correctness might be a theoretical concept but incorrectness has practical implications.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 13 2008 :  07:13:18 AM  Show Profile  Reply with Quote
We are considering this idea, but have no immediate plans to try and do this. One reason is possible problems with source control systems. If we automatically rename files you can use the file history, and trying to plug into and update any number of different source control systems is not going to happen :)

case=1463
Go to Top of Page

GennadiyKorol
Ketchup Master

Israel
54 Posts

Posted - Sep 13 2008 :  1:43:58 PM  Show Profile  Reply with Quote
So it's a case for another VB script to write (gotta sharpen my VB skills!).

A question then - is there a way to invoke VAX's find replace from within a script?

Correctness might be a theoretical concept but incorrectness has practical implications.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 15 2008 :  1:53:47 PM  Show Profile  Reply with Quote
Search and Replace is an IDE command. Do you think to Va Rename?
Go to Top of Page

GennadiyKorol
Ketchup Master

Israel
54 Posts

Posted - Sep 15 2008 :  2:26:28 PM  Show Profile  Reply with Quote
Yes, that's what I've intended to use, VA Rename.

Correctness might be a theoretical concept but incorrectness has practical implications.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Sep 15 2008 :  4:31:08 PM  Show Profile  Reply with Quote
This forum thread which describes controlling VA from IDE macro's should help you:

http://docs.wholetomato.com?W382

and you may also find some useful bits of VBScript code in this forum section:

http://www.wholetomato.com/forum/forum.asp?FORUM_ID=35

If you want to invoke VA's Rename command from a VBScript remember that the Rename dialog will appear, which you need to use manually.

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

support
Whole Tomato Software

5566 Posts

Posted - Sep 13 2012 :  2:03:12 PM  Show Profile  Reply with Quote
case=1463 is implemented in build 1916
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