index > Visual Studio Guidance Automation Toolkit > new to GAT

new to GAT

Hello,

I'm new to GAT and want to evaluate whether it may fit my needs or not. Therefore I need some additional information:

I've read that GAT can generate code from templates. Can code generation only be used when a new project is created or (now comes the important part :) ) can you even specify to insert documentation-headers etc. when a new class/method is declared in an existing file?

Thanks in advance!

Mak
-Mak-
You can do whatever VS allows you to do ;)
GAT is a mechanism to contextualize so-called recipes (that appear either/both as tasks in the task list or context menus) so that they show up only when it's relevant (i.e., context menu of a the text editor, but only when you're over a class which inherits from [Foo], has the [BarAttribute], implements interface X or is using namespace Y. Pretty much whatever you want.

GAT will call your so-reference IsEnabledFor method, and you'll be able to perform all those checks against the current CodeModel element (this is VS object model) and determine whether you want your operation to be available.

Once someone executes the recipe, your actions will be able to again talk to VS and have it do whatever the VS APIs let you do.

HTH,



Daniel Cazzulino [Solutions Architect MVP]
kzu
Thanks! That is good to know!

I want to solve a problem with GAT, which should not be a very difficult task, I think. I want to create a code-template, which inserts a customizable "documentation-header" whenever a new method/class is created (this template should be executed in new and in existing files). So every developer is kind of "forced" to write documentation for his code.

I'm currently reading the HelpFiles, which came with GAT to get an idea where to start.....
Maybe someone can give me hint, where to begin with my task.

Sorry, for some silly questions. I'm a young guy who just startet to work hisself into VS05TFS so I'm relatively new to everything in VS. :)


-Mak-
edit: today we are solving the mentioned problem with the help of snippets. I thought GAT could do the job in a more comfortable way....
-Mak-
reply 4

You can use google to search for other answers

 

More Articles

• June GAT Installation Issues
• DependentUpon
• uninstall of HoLPackageSetup.msi failed with "manifest file ...
• Cannot download June CTP GAX or GAT - download hangs
• How do I add an empty project folder?
• Can't Register or Unregister Recipe
• Where can I get December 2005 version now?
• Introduction to GAT
• Execute Action when content of Combobox changes
• Is there a way to use the T3 engine as a Custom Tool?
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How do I add an empty project folder?
• Problem with Specifying Command Bars
• Type of Document objects retrieved from
• CAB Module menu item doesn't run
• HoLPackage Registration menu disappear
• Getting the project object after Add New
• GAT breaking changes
• Reuse Projects and Recipes
• Error installing GAT on VS 2005 (German)
• System.Collections.Generic.KeyNotFoundEx
• Multiple Project Creation Template
• How does one set a default value?
• Execute Action when content of Combobox
• Project References Guids?
• Debugging your packages.

Hot Articles

• Slow Wizard Input using MonitorArgument
• Can instal GAT (and MobileClient! ;( )
• Guidance Package Build
• Simulate DependentUpon with DTE class
• Solution Folder Name
• Register Guidance Package fails
• Extending Designer Toolbox
• Using FileNameEditor as a Value Editor
• Wizard size and colors
• web project template, to fire code in ga
• Multiple Project Creation Template
• Code samples anywhere ?
• CodeDom -Error when Run Recipe
• Problem with Specifying Command Bars
• Guidance Automation Extensions and Toolk

Recommend Articles

• GAT not compatible with W2K?
• Generic argument types
• VSTS - Web Test - FIND TEXT command
• Register Guidance Package fails
• Cannot download June CTP GAX or GAT - do
• DependentUpon
• Cant' install "Guidance Automation
• Can't run the Guidance Package
• GAT Custom Directive Processor
• Set an "Overview" HTML page to
• Nested Solution Folder Parent?
• Slow Wizard Input using MonitorArgument
• Getting the project object after Add New
• Package works when manually registered b
• Creating projects in a subdirectory