How to: Organize a Domain-Specific Language Diagram

The following procedures demonstrate how to organize a domain-specific language diagram by using common tasks such as hiding the mapping lines and collapsing and expanding the relationship trees.

To display or hide mapping lines

  • On the Dsl Designer toolbar, click Show Map Lines.

    注意

    If the Dsl Designer toolbar does not appear, right-click the toolbar area in Visual Studio, and click Dsl Designer.

To collapse a domain relationship tree

  • On the parent domain class, click the port to which a domain relationship that contains a minus symbol is attached.

    - or -

    Right-click the domain class, and click Collapse Relationships Tree.

    The domain relationships collapse, and a plus symbol appears next to the domain class port.

To expand a domain relationship tree

  • On the parent domain class, click the port to which a domain relationship that contains a plus symbol is attached.

    - or -

    Right-click the domain class, and click Expand Relationships Tree.

    The domain relationships expand, and a minus symbol appears next to the domain class port.

To move a domain class to the tree

  1. In the tree, click the domain class that you want to move.

  2. On the Dsl Designer toolbar, click Bring Tree Here.

    注意

    If the Dsl Designer toolbar does not appear, right-click the toolbar area in Visual Studio, and click Dsl Designer.

    You can also right-click the domain-class and click Bring Tree Here.

    The individual instance of the domain class no longer appears in the diagram and appears only in the tree.

To split trees

  1. Click the domain class that you want to split from the tree.

  2. On the Dsl Designer toolbar, click Split Tree.

    注意

    If the Dsl Designer toolbar does not appear, right-click the toolbar area in Visual Studio, and click Dsl Designer.

    You can also right-click the domain-class and click Split Tree.

    The domain class is split from the tree and appears both in the tree and in the diagram independently.

See Also

Concepts

Common Tasks (Domain-Specific Language Designer)

Domain-Specific Language Designer Terminology Overview

Domain-Specific Language Tools Glossary