Skip to content

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:

image2022-12-15_17-7-41

By selecting the corresponding keyword, the stored template is entered:

image2022-12-15_17-7-50

Customer tokens

In the ModelConfig object the text tokens can be defined:

image2022-12-15_17-14-24

Three different types are available.

  1. The function text token can only be selected in codesnippet functions.

    class FunctionTextToken extends ATextTokenElement

  2. The general text token can be selected in all codesnippets.

    class GeneralTextToken extends ATextTokenElement

  3. The guard text token can only be selected in codesnippet guards.

    class GuardTextToken extends ATextTokenElement

image2022-12-15_17-14-17