Merging diagrams graphically

With Rational® Rhapsody® DiffMerge, you can copy an element in one diagram that you would like to have in another diagram. You can copy the graphic 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.

About this task

While this procedure shows how to merge graphic elements in an object model diagram, you can use the same method to merge elements for any of the Rational Rhapsody diagrams.

Procedure

  1. Optional: Right-click the object model diagram in the Rational Rhapsody DiffMerge browser and select View All Diagrams to review the diagrams to help you decide from which side you want to take your changes.
  2. Right-click the object model diagram and select Merge Graphically. Rational Rhapsody opens windows to show all versions of the object model diagram, including the newly created merged object model diagram in the Merge window.
  3. Right-click the object model diagram and select Take from Right, Take from Left, or Include in Merge.
    Note: For statecharts, And-states can be copied from the right or from the left, but not from both sides. For activity diagrams, swimlanes can be copied from the right or from the left, but not from both sides.
  4. Review the merged object model diagram in the Merge window.
  5. Edit the merged object model diagram, if necessary.
    • Right-click an element in the merged diagram and use the options on the pop‑up menu; for example, Take from Left, Take from Right, Exclude from Merge.
    • You can move and delete elements. In addition, you can modify a textual element through its Features window.
  6. When you have completed the merge operation, save the merged file as described in the topic on saving the merged unit.

    Additional changes permitted in graphical merge mode

    When working in graphical mode, in addition to making merge decisions:

    • You can move diagram elements on the "merged" version of the diagram that is displayed.
    • You can delete diagram elements from the "merged" version of the diagram that is displayed.
    • You can change element attributes such as arguments.
    Note: For most diagrams, you cannot create new elements to add to the diagram. The exception is statecharts and activity diagrams. For statecharts and activity diagrams, you can create new states, transitions, and other elements that can exist within a diagram (though you still cannot create classes, events, and so on.)

Feedback