beautypg.com

Elements, Defaultname, Description – Slick EDIT V3.3 User Manual

Page 139

background image

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).

"http://www.slickedit.com/dtd/vse/setemplate/1.0/setemplate.dtd">

My C++ Class

My complete C++ class header and implementation

MyClass.cpp

MyClass.cpp

MyClass.h

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