10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CODE TEMPLATES<br />

Summary of metadata elements:<br />

Elements<br />

DefaultName<br />

Element Child Elements Attributes<br />

DefaultName - -<br />

Description - -<br />

File - ReplaceParameters,<br />

TargetFilename<br />

Files File -<br />

Name - -<br />

Parameter - Name,Value<br />

Parameters Parameter -<br />

SETemplate TemplateContent,<br />

TemplateDetails<br />

SortOrder - -<br />

DefaultName is an optional child element of TemplateDetails. Specifies the default item name when using<br />

the Add New Item dialog box. This element becomes more important in multi-file templates where you<br />

need to specify a DefaultName element in order to create file names from parts of the input item name.<br />

See the example below.<br />

• Attributes - None.<br />

• Child elements - None.<br />

• Parent elements - TemplateDetails.<br />

• Value - Text value is required. The text value specifies the default name of the template item. Used<br />

to populate the name field with an initial value on the Add New Item dialog box.<br />

Example<br />

The following example illustrates the metadata for an item template for a C++ class that creates a header<br />

file (.h) and implementation file (.cpp).<br />

<br />

<br />

<br />

<br />

My C++ Class<br />

Type,Version<br />

TemplateContent Files,Parameters Delimiter<br />

TemplateDetails DefaultName,<br />

Description,Name,<br />

SortOrder<br />

250 <strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong><br />

-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!