
If the user selects three files, the comparison proposes to compare two files taking into account a third common ancestor as illustrated below. Other methods can be added via extensions of the diff/merge tool. A default, configurable comparison method that is suitable, e.g., for version control is available. 'Comparison method' combo box allows selecting the way models are compared. If no direction is chosen, then the comparison is represented in a symmetric way and both models can be modified by default. These radio buttons have an impact on the 'Modifiable' check boxes. 'Merge direction' radio buttons specify the direction of the merge, i.e., which model is the source of changes and to which model the changes can be applied. This is a way to protect a model against accidental changes due to a wrong usage of the tool. If a check box is unselected, it will not be possible to carry out merge actions which would modify the corresponding model. 'Modifiable' check boxes allow defining which model(s) can be modified. 'up-and-down-arrows' button on the right can be used to swap the position of models - left or right - in the tool, for convenience. Setup dialog involving the selected files is shown. It can also be used on model-based diagrams (GMF files, or Sirius *.aird files for example) or model fragments. This menu item is enabled when two model files are selected in the Project Explorer as illustrated in the figure below. The GUI is accessible via the 'Compare With' - 'Each Other as models' popup menu item. Other technological usages of EMF Diff/Merge as well as complementary technical documentation are available online on the The GUI supports setting up and configuring comparisons, visualizing differences and selectively merging those differences. This document explains how users can use the GUI to compare and merge models manually. Typical usages include model refactoring, iterative model transformations, bridges between models or modeling tools, collaborative modeling environments, or integration with Version Control Systems.Ī GUI is also provided for a classical usage within Eclipse. Its main purpose is to help build higher-level tools that need to merge models based on consistency rules. EMF Diff/Merge is a diff/merge technology for models.
