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
 Refactor class snippet?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hicks
Starting Member

1 Posts

Posted - Jun 19 2008 :  8:27:30 PM  Show Profile  Reply with Quote
I'm using a modified version of the "Refactor Document Method" snippet for a project I'm working on. Rather than displaying the "ClassName::MethodName" as part of the comment using $SymbolContext$ I need to show "ClassName" on one line and "MethodName" on another.

Method name can be obtained using $SymbolName$, but I cannot find anything for the class name?

Currently I'm just copying the name before running the method and letting $clipboard$ handle it, but sometimes forget

Have I missed an obvious solution to this? Or is this not possible with the current snippets system?

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Jun 20 2008 :  09:01:23 AM  Show Profile  Reply with Quote
Currently you cannot do this, although we are looking to add a ClassName token to VA Snippets:

case=2050

For now you could try adding the token $ClassName$ to your Document Method snippet. Since this is an unknown token VA will prompt you for the value, so you can dismiss the dialog if you have forgotten to copy the class name and then re-trigger Document Method when you have copied it.

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  10:03:48 PM  Show Profile  Reply with Quote
case=2050 is implemented in build 1715
New tokens are $NamespaceName$, $BaseClassName$, $ClassName$, $MethodName$, and $MethodArgs$.
These should not be used in refactoring snippets, although some work in the Document Method snippet, depending on where it's invoked (declaration vs. implementation).

Whole Tomato Software, Inc.
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