Modifying elements by using enhanced drag-and-drop

You can form associations between model elements by dragging and dropping one element onto another in the browser, or on a diagram.

About this task

You can form associations between model elements by dragging and dropping one element onto another in the browser, or on a diagram. When you perform a specific drag and drop operation, you can select from a submenu choices, or a confirm the operation in a message window. Rhapsody® then updates the features of the target element on which you perform the operation. You can also use drag and drop to modify the order of elements anywhere in the browser.
Drag and drop operation in browser Result
Requirements onto elements The dependency provides a link from the requirement to the element. You can specify the type of dependency you want to use for the link.
Classes, actors onto objects and parts Changes the element icon in the browser and the Type field on the General tab of the Features window.
Classes, types onto functions and operations Changes the Return Type field on the General tab of the Features window.
Interfaces onto ports Adds a provided interface and sets the contract for the port.
Events, triggered operations onto transitions Changes the Trigger field on the General tab of the Features window.
Events onto interfaces Adds the event as a reception to the interface.

Procedure

  1. In the browser, select the element you want to drag and drop to another location in your project.
  2. Drag the element to the desired location. Before releasing the mouse button, press the Ctrl key.
  3. Release the mouse, then do one of the following:
    • Select an option from the context submenu (Copy, Change Type, or Cancel.
    • Confirm the operation in the Message window.

Results

Rhapsody changes the icon of the target selection according to the type of drag and drop operation you perform. You can open the Features window of the target selection to review the changes listed in the table.