How to: Add Compartment to a Compartment Shape (DSL Explorer)

You can use compartment shapes to specify how domain classes appear in a generated designer for a domain-specific language. You add compartment shapes to a domain class that contains additional properties and decorators. These shapes can contain several individual compartments. For more information, see How to: Add Compartment to a Compartment Shape (DSL Explorer).

To add a compartment to a compartment shape in DSL Explorer

  1. In DSL Explorer, expand the Shapes node.

  2. Under the Shapes node, right-click the compartment shape to which you want to add a compartment, and click Add New Compartment.

    A compartment is added under the Compartments node and is also reflected in the compartment shape on the diagram.

  3. Click the new compartment node, and then set any properties that you want in the Properties window. For more information, see Compartment Shape (Domain-Specific Language Designer).

See Also

Concepts

Defining Shapes in Domain-Specific Language Explorer

How to: Add a Compartment Shape to a Domain-Specific Language Definition

Domain-Specific Language Tools Glossary