Creating Shortcuts

From RAD Studio
Jump to: navigation, search

Go Up to Creating Elements, Links, and Shortcuts on Diagrams

To create shortcuts on diagrams use the following methods:

To create shortcuts using the 'Edit Shortcuts for Diagram' dialog box

  1. In the Diagram View, right-click the diagram background and choose Add > Shortcuts on the context menu. The Edit Shortcuts for Diagram dialog box opens.
Alternatively, use CTRL+SHIFT+M in the Diagram View.
  1. In the Model Elements pane, from the tree view of available model elements, choose an element to create a shortcut and click Add to place the selected model element into the list in the Selected pane.
  2. Repeat this operation for all elements to which you want to create shortcuts.

  3. When the list of model element in the Selected pane is prepared, click OK.
  4. Edit Shortcuts for Diagram adds shortcuts to all model elements in the list.

To create a shortcut using a drag-and-drop operation

  1. In the Model View, select a model element.
  2. Use a drag-and-drop mouse feature to move the model element from the Model View onto a diagram in the Diagram View.

To create a shortcut using 'Copy' and 'Paste Shortcut' commands

  1. In the Model View, right-click the model element to add, as a reference, to a diagram and choose Copy on the context menu.
  2. In the Diagram View, right-click the target diagram background and choose Paste Shortcut on the context menu.
Tip: You can also Copy a model element on one diagram and paste it, with the Paste Shortcut command, on another diagram.

To create a shortcut using the 'Add Shortcuts' command in the 'Model View'

  1. In the Diagram View, open the diagram on which to add a shortcut.
  2. In the Model View, right-click the element to add to the open diagram as a shortcut and choose Add as Shortcut on the context menu.

To add shortcuts to class ancestors using the 'Add to Diagram' or 'Add to Diagram with Ancestors' commands

  1. If a class element on a diagram in the Diagram View shows the name of the parent class, then click this parent class name. The context menu showing the following two commands opens:
    • Add to Diagram—Choose this command to add on the diagram the shortcut to the parent class and to show on the diagram the generalization link from the class to the parent class.
    • Add to Diagram with Ancestors—Choose this command to add on the diagram the shortcuts to the parent class and to all its ancestors and to show on the diagram the generalization links from the class to the parent class and to all ancestors.
Note: This feature can be used only in implementation projects.

See Also