CodeSnippet Text Token
class ATextTokenElement
A text token is a language element (e.g. a keyword) which can be selected via Content Assist. Postfixes with templates can be attached to a text token. This also allows customer-specific templates to be defined.
Predefined tokens (keywords)
All keywords can be selected via the content assist:
By selecting the corresponding keyword, the stored template is entered:
Customer tokens
In the ModelConfig object the text tokens can be defined:
Three different types are available.
-
The function text token can only be selected in codesnippet functions.
class FunctionTextToken extends ATextTokenElement
-
The general text token can be selected in all codesnippets.
class GeneralTextToken extends ATextTokenElement
-
The guard text token can only be selected in codesnippet guards.
class GuardTextToken extends ATextTokenElement