home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / ExampleMenuCommand.xft < prev    next >
Extensible Markup Language  |  2004-07-05  |  2KB  |  61 lines

  1. <?xml version="1.0"?>
  2. <Template author="Mike Krueger" version="1.0">
  3.     
  4.     <Config
  5.         name        = "${res:Templates.File.#Develop.MenuCommand.Name}"
  6.         icon        = "C#.File.FullFile"
  7.         category    = "#Develop"
  8.         defaultname = "Class${Number}.cs"
  9.         language    = "C#"/>
  10.      
  11.     <Description>${res:Templates.File.#Develop.MenuCommand.Description}</Description>
  12.     
  13.     <!-- 
  14.     Special new file templates:
  15.         ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
  16.         ${FullName}                 -> Full generated path name
  17.         ${FileName}                 -> File name with extension
  18.         ${FileNameWithoutExtension} -> File name without extension
  19.         ${Extension}                -> Extension in the form ".cs"
  20.         ${Path}                     -> Full path of the file
  21.      -->
  22.     <Files>
  23.         <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
  24. using System;
  25. using System.Windows.Forms;
  26.  
  27. using ICSharpCode.Core.AddIns.Codons;
  28.  
  29. namespace ${StandardNamespace}
  30. {
  31.     /// <summary>
  32.     /// Description of ${FileNameWithoutExtension}
  33.     /// </summary>
  34.     public class ${FileNameWithoutExtension} : AbstractMenuCommand
  35.     {
  36.         /// <summary>
  37.         /// Creates a new ${FileNameWithoutExtension}
  38.         /// </summary>
  39.         public ${FileNameWithoutExtension}()
  40.         {
  41.             // You can enable/disable the menu command using the
  42.             // IsEnabled property of the AbstractMenuCommand class
  43.         }
  44.     
  45.         /// <summary>
  46.         /// Starts the command
  47.         /// </summary>
  48.         public override void Run()
  49.         {
  50.             // TODO: Add your code here !!!
  51.         }
  52.     }
  53. }
  54. ]]>
  55.         </File>
  56.     </Files>
  57.     
  58.     <AdditionalOptions/>
  59.     
  60. </Template>
  61.