This example presents step-by-step instructions for customizing a drag-and-drop rule, according to the Generalization relationship created between classes after the drag-and-drop.
For the Class onto Class class, apply the «DragAndDropSpecification» stereotype .
There is a new button in the Profile diagram palette - Drag and Drop Specification. Use this button to create a class element with the assigned «DragAndDropSpecification» stereotype. |
Create a Customization element.
In the Customization Specification window, assign the Class onto Class element to the Allowed Drag and Drops property under Connection Rules.
In the Customization Specification window, under the General category, for the Customization Target property, assign the Class metaclass.
In the Class onto Class Specification window, specify the following property values: