You can use the DSL Details window in association with the Domain-Specific Language Designer and DSL Explorer. For example, you can use the DSL Details window to set decorator mappings on shapes. To set the decorator mapping details in the DSL Details window, you must first click a domain class or a map line under the Classes and Relationships swimlane in the Domain-Specific Language Designer. You can also click a connector shape or any of the valid shapes that map to a domain class under the Diagram Elements swimlane.
For more information, see Connector (Domain-Specific Language Designer), Geometry Shape (Domain-Specific Language Designer), Image Shape (Domain-Specific Language Designer), Port Shape (Domain-Specific Language Designer), Swimlane (Domain-Specific Language Designer), and Compartment Shape (Domain-Specific Language Designer).
In addition to clicking these elements in the diagram, you can also click them in DSL Explorer's Domain Classes, Connectors, and Shapes nodes. For more information, see Defining Domain Classes in Domain-Specific Language Explorer, Defining Connectors in Domain-Specific Language Explorer, and Defining Shapes in Domain-Specific Language Explorer.
In the DSL Details window's Mapping Details channel, on the Decorator tab, you can map the display properties of decorators to display decorators in the generated designer. You can also configure them for visibility filtering, based on a property and condition as described in the following procedures.
To define decorator map settings
In the Decorators list, click the decorator for which you want to define mapping details.
Select the check box for the decorator if you want to associate a display property with it so that the decorator appears in the generated designer.
(Optional.) In the Path to display property box, click to bring up a tree view of the path of the display property. For more information about domain paths, see Overview of Domain Path Syntax.
In the Display property list, click the display property that you want to show in the generated designer.
You have now defined a complete static decorator. To apply visibility filtering, continue to the next procedure.
To apply visibility filtering
Select the Visibility Filter check box.
(Optional.) In the Path to filter property box, click to select a domain path if you want to use a domain property that is associated with a specific element in the domain-specific language. For more information about domain paths, see Overview of Domain Path Syntax.
In the Filter property list, click the domain property on which you want to filter.
In the Visibility entries list, click the value that is associated with the filter property.