Merging diagrams graphically for statecharts and activity diagrams

Use the following procedure to merge diagrams graphically for statecharts, activity diagrams, and flow charts. This method is for these diagrams only.

About this task

To merge diagrams graphically for the other IBM® Rational® Rhapsody® diagrams (such as object model diagrams and structure diagrams), see Merging diagrams graphically.

Note: Use this approach when you have an element in one diagram that you would like to have in another diagram.

You can copy the graphical elements from the left or right window and place them in the Merge window, or create new elements in the Merge window and move or size them as needed.

Procedure

To merge existing graphic elements in a statechart, activity diagram, or flow chart in the IBM Rational Rhapsody DiffMerge interface:

Note: While this procedure shows how to merge graphic elements in a statechart, you can use the same method to merge elements for activity diagrams and flow charts. For additional information, see Tips for graphical merging for statecharts and activity diagrams.

  1. Select the statechart in the Rational Rhapsody DiffMerge browser, right-click, and select Merge Graphically to open the diagrams.
  2. Select one or more elements to copy, and then press Ctrl+C (or choose Edit > Copy).
  3. Click in the Merge window (You can create a statechart or merge elements into one of the original statecharts).
  4. Press Ctrl+V (or choose Edit > Paste) to place the elements. Use your mouse to drag‑and‑drop one or more new elements to move them to the appropriate position within the merged diagram.
  5. Drag an element to position it precisely. For statecharts, you can copy:
    • Any state or connector.
    • Any group of elements (including states, transitions, and connectors), provide that, if it includes a transition, it also includes its source and target.
    • A label of a transition. This method is the only way to copy or create a transition.
      Note: You can copy a transition only with its source and target.
  6. Repeat Steps 15 to merge additional elements.
  7. Edit the merged statechart if necessary. For example, you can draw new elements using the toolbar icons and you can click anywhere in the window to unselect a new element.
  8. When you have completed the merge operation, save the merged file as described in Saving the merged unit.

Feedback