Slick V3.3 Computer Accessories User Manual


 
Elements
DefaultName
DefaultName is an optional child element of TemplateDetails. Specifies the default item name when us-
ing the Add New Item dialog box. This element becomes more important in multi-file templates where you
need to specify a DefaultName element in order to create file names from parts of the input item name.
See the example below.
Attributes - None.
Child elements - None.
Parent elements - TemplateDetails.
Value - Text value is required. The text value specifies the default name of the template item. Used to
populate the name field with an initial value on the Add New Item dialog box.
Example
The following example illustrates the metadata for an item template for a C++ class that creates a header
file (.h) and implementation file (.cpp).
<?xml version="1.0" ?>
<!DOCTYPE SETemplate SYSTEM
"http://www.slickedit.com/dtd/vse/setemplate/1.0/setemplate.dtd">
<SETemplate Version="1.0" Type="Item">
<TemplateDetails>
<Name>My C++ Class</Name>
<Description>My complete C++ class header and implementation</Description>
<DefaultName>MyClass.cpp</DefaultName>
</TemplateDetails>
<TemplateContent>
<Files>
<File TargetFilename="$fileinputname$.cpp">MyClass.cpp</File>
<File TargetFilename="$fileinputname$.h">MyClass.h</File>
</Files>
</TemplateContent>
</SETemplate>
Description
Description is a required child element of TemplateDetails. Specifies the description for the template
item. See the example below.
Attributes - None.
Code Template Metadata File
Reference
117