variable name | project | simul. | msgfile | inifile | nedfile | wizard | export |
| X | ||||||
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | ||||||
| X | X | X | ||||
| X | X | X | X | |||
| X | ||||||
| X | ||||||
| X | ||||||
| X | X | X | X | X | X | |
| X | X | X | X | X | X | |
| X | X | X | X | X | X | |
| X | X | X | X | X | X | |
| X | ||||||
| X | ||||||
| X | ||||||
| X | ||||||
| X | X | X | ||||
| X | X | X | X | X | X | |
| X | X | X | X | X | ||
| X | X | X | X | X | ||
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
| X | ||||||
| X | X | X | X | X | X | X |
| X | X | X | X | X | X | X |
In the following sections, we describe the individual wizard types and their supported template variables. Variables will be marked with one or more letters to show in which wizard types they are supported as shown in the previous table.
Variables marked as (*) are set by the wizard automatically and generally it does not make sense to change their values.
date
(A)
year
(A)
author
(A)
licenseCode
(A)
licenseText
(A)
bannerComment
(A)
wizardType
(A,*)
project
, simulation
, nedfile
, inifile
, msgfile
,
simplemodule
, compoundmodule
, network
, wizard
, or export
templateName
(A,*)
templateDescription
(A,*)
templateCategory
(A,*)
templateURL
(A,*)
The following variables are only defined if the template was loaded from the workspace
(i.e. a project’s templates/
subdirectory):
templateFolderName
(A,*)
templateFolderPath
(A,*)
templateProject
(A,*)
targetFolder
(A,*)
targetFileName
(N,I,M,*)
targetTypeName
(P,S,N,I,M)
${projectName}
; for simulations, it is the specified ${simulationName}
; and for the rest of wizards, it is calculated from the ${targetFileName}
).
targetMainFile
(P,S,N,I,M)
${targetTypeName}.ned
, while for ned, msg and ini files, it is ${targetFileName}
).
rawProjectName
(A)
projectName
(A)
projectname
(A)
PROJECTNAME
(A)
Sanitization means making the name suitable as a NED or C/C++ identifier (spaces, punctuation and other inappropriate characters are replaced with underscore, etc.).
addProjectReference
(P)
withCplusplusSupport
(P,*)
sourceFolders
(P)
makemakeOptions
(P)
requiresCPlusPlus
(P)
sourceFolders
and makemakeOptions
are present or withCplusplusSupport=true
,
the template will be displayed only if the "support C++ option" option was set on the
first page of the project wizard.
namespaceName
(S,N,M)
@namespace
property in NED files in the NED source folder.
nedSourceFolders
(P)
nedPackageName
(P,S,N,I)
${projectname}
.
For simulations, NED and INI files, it is automatically
calculated from the folder hierarchy where the file
is generated.
simulationFolderName
(S,*)
simulationName
(S,*)
simulationFolderName
.
newWizardName
(W,*)
templates
directory where
all the template files will be stored.
newWizardProject
(W)
The variables below are for advanced use only. They can be used to access directly all known NED and message types, static classes for utility functions and the whole context used during template processing.
creationContext
(A)
classes
(A)
nedResources
(A)
msgResources
(A)
In addition to the above variables, all keys found in the template.properties file are added automatically to the context as a template variable.