To establish inheritance from one domain class to another in a domain-specific language definition, you use the Inheritance item in the Toolbox for the Domain-Specific Language Designer.
For more information, see How to: Add a Domain Class to a Domain-Specific Language Definition.
When you create an inheritance relationship between two domain classes, a second shape appears in the diagram. This shape represents the derived class. Several instances of the same shape appear to simplify diagram layout and to preserve an intuitive tree structure.
To add inheritance to a definition
In the Toolbox, on the Dsl Designer Toolbox tab, click the Inheritance item.
Do one of the following:
Click the derived class, and then click the base class.
Drag the derived class onto the base class.
注意
The pointer will change to a no-drop icon if the connection points are not valid.
The inheritance is created in the domain-specific language definition under the Classes and Relationships swimlane.
See Also
Concepts
Defining Classes and Relationships