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:
- Select the statechart in the Rational Rhapsody DiffMerge browser,
right-click, and select Merge Graphically to
open the diagrams.
- Select one or more elements to copy, and
then press Ctrl+C (or choose Edit > Copy).
- Click in the Merge window (You can create
a statechart or merge elements into one of the original statecharts).
- 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.
- 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.
- Repeat Steps 1–5 to
merge additional elements.
- 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.
- When you have completed the merge operation,
save the merged file as described in Saving the merged unit.