The drag-and-drop customization allows you to create relationships or assign property values by dragging and dropping one element onto another right in the diagram pane. By using the DSL engine, you may set up your own drag-and-drop specifications between elements:
There are a number of predefined rules to create relationships or assign property values automatically.
Drag and Drop Actions
You can customize the following drag-and-drop actions:
- drag-and-drop one element from the diagram pane onto another element on the diagram pane
- drag-and-drop one element from the Model Browser onto another element on the diagram pane
- drag-and-drop two or more elements from the Model Browser onto an element on the diagram pane
Below is a list of the properties to customize drag-and-drop rules.
Property | Description |
---|---|
Source Element | Specify the element type to drag to the target element. Specify a class, metaclass, or stereotype. This is a mandatory property: if the Source Element property is undefined, then the drag-and-drop rule is inactive. |
Representation Text | Specify the name of the drag-and-drop rule. |
Relation Action Result | Specify a relationship created between the source and target elements after drag-and-drop. |
Property Action Result | Specify a property assigned to the target element after drag-and-drop. Note. Before specifying this property, you need to add the drag-and-drop rule into the target element customization Specification window > Connection Rules category > Allowed Drag And Drops property. |
Append Mode | Change the append mode for the property assignment. The possible Append Mode property value is true or false. If true, properties are assigned one by one. If false, the created property overwrites the former property. |