How to: Add a Decorator
A decorator is a visual item that appears on an object, such as a shape or a connector, in a generated designer. You can use decorators to add labels, icons, and chevrons to an element, and you can add multiple decorators to each object. For more information about the types of decorators that are available and their properties, see Decorator (Domain-Specific Language Designer).
To add a decorator to an element in a diagram
In the Diagram Elements swimlane, right-click the name of the object in the diagram.
Click Add, and then select one of the following check boxes:
ExpandCollapseDecorator
IconDecorator
TextDecorator
The decorator is added to the element and appears under the element's Decorator node in DSL Explorer.
In the Properties window, modify the properties of the decorator to meet your requirements.
To add a decorator to an element in DSL Explorer
In DSL Explorer, expand the Connectors or Shapes node.
Right-click the object, and then select one of the following check boxes:
Add New ExpandCollapseDecorator
Add New IconDecorator
Add New TextDecorator
The decorator appears under the element's Decorator node and is added to the element in the diagram.
In the Properties window, modify the properties of the decorator to meet your requirements.
See Also
Concepts
Decorator (Domain-Specific Language Designer)