Variable Definition

Sources of variables

EIS supports following types of variables which can be used in Source of annotation list.

  • EiffelStudio installation built-in variables
    • ISE_WIKI =
    • ISE_DOC = 
    • ISE_DOC_UUID = 
    • ISE_DOC_REF = 
  • Other EiffelStudio built-in variables
    • system_path = The path of the system being annotated
  • Context related built-in variables. These variables can be used in specific context. For instance, feature_name refers to the name of the feature with which an annotation is associated.
    • feature_name
    • class_name
    • group_name
    • target_name

Note: A context related built-in variable is only valid in a annotation that is associated with a component to which the variable name refers. For example, feature_name has no effect if used in a target component.

  • Individual system or library preference variables. This kind of variable is defined in your Project Settings. Manage these variables by following this path in the System tree on the left of the Project Setting dialog:

System -> Target -> Advanced -> Variables

  • Environment variables. Variables defined in the operating system environment.

Accessing variables from the Information tool

When you use the Information tool, the list of all available variables is available through auto-completion when you are typing in an entry under the Source column of the annotations list. You may either type the dollar-sign "$" or "Ctrl + Space" to invoke auto-completion. What you will see in this case is the entire list of available variables, as enumerated above. Bear in mind that this includes all environment variables defined in your operating system environment, which means that some of the entries shown would not be appropriate for use as variables for EIS purposes.