You can specify aliases for elements within the context of a namespace. The elements may be owned members of the namespace or individual members of other packages. The alias name or short name can be different than the element's declared name or declared short name.

Specifying an alias

Specifying an alias via the Textual Editor

To specify an alias via the Textual Editor


  1. In the Textual Editor, place the cursor where you want to create the alias, declare the keyword alias, followed by the alias short name and/or alias name, followed by the keyword for, and the name of the element for which you want to specify an alias.
  2. (Optional) Specify the documentation for the alias.
  3. Click the Synchronize button.

package 'Automobile' {
    public import ISQ::TorqueValue;
    private import ScalarValues::*;
    part def Automobile;
    alias Car for Automobile {
        doc /* Documentation of the alias. */    // alias with documentation
    }
    alias <trq> Torque for ISQ::TorqueValue; // declared alias short name '<trq>' and declared alias name 'Torque'
}