The Abbreviation property enables creation of a DSL element with an abbreviated name. You can enter the default name while specifying the customization element. 


To define an abbreviation


  1. In the Customization Specification window, click the Customization Target property and then select a stereotype or metaclass for which the abbreviation will be used.
  2. Click the Abbreviation property and then type the text. 
  3. Reopen the project. 


Case Study

We will demonstrate how to add an abbreviation for the class attribute.

  1. Create a profile diagram
  2. Create a customization element named PropertyAbbreviation
  3. In the PropertyAbbreviation customization Specification window, click the Customization Target property and then select the Property metaclass. 
  4. Under the Naming category, click the Abbreviation property and type a short name for the property, for example, prop
  5. Close the Specification window. Reopen the project. 
  6. Create a class in the class diagram. 
  7. Create an attribute in the class. The property with the predefined name (or abbreviation) is created. 

Creating an attribute in a class.