How to: Modify Deletion Behavior on Diagram Elements

You use the DSL Details window together with the Domain-Specific Language Designer and DSL Explorer. For example, you can use this window to specify deletion behavior for domain classes as described in the following procedure.

注意

Other elements (such as connectors, domain relationships, and the diagram) appear in the DSL Details window's Deletion Behavior channel because all elements are based on domain classes. However, you cannot modify these types behavior unless you establish a domain relationship to them.

To modify the deletion behavior of a domain class

  1. Do one of the following:

    • In the Classes and Relationships swimlane, click a domain class.

    • In DSL Explorer, expand the Domain Classes node, and click a domain class.

    The DSL Details window appears with the Delete Behavior channel open.

    注意

    If the DSL Details window does not appear, click DSL Details on the DSL Designer toolbar.

  2. (Optional) In the Delete Style column, change the value to User specified if you want to use custom code.

  3. Select the Propagate check box to propagate the deletion through the tree to the location on the tree that is indicated in the Relationship and Property columns.

    注意

    You can restore the deletion behavior for the currently selected element back to its default settings by clicking Restore Defaults on the top of the Delete Behavior channel.

See Also

Concepts

Working with the Domain-Specific Language Details Window

Domain-Specific Language Designer Terminology Overview

Domain-Specific Language Tools Glossary