Jump to: navigation, search

Difference between revisions of "EMF DiffMerge"

Line 9: Line 9:
 
*The consistency of the model being merged must be preserved whenever possible, by automatically merging interdependent differences together.  
 
*The consistency of the model being merged must be preserved whenever possible, by automatically merging interdependent differences together.  
 
*The order in which differences are merged must have no impact.  
 
*The order in which differences are merged must have no impact.  
*The global impact of a merge must be defined and available beforehand (see picture below).
+
*The global impact of a merge must be available beforehand (see picture below).  
 
*Undo/redo of merges must be supported.  
 
*Undo/redo of merges must be supported.  
 
*The tool must scale to large models.<br>
 
*The tool must scale to large models.<br>

Revision as of 02:50, 23 August 2012

Introduction

EMF Diff/Merge is a diff/merge tool for models.

Merging models is a common need in model-based activities, not only for version control but for model manipulation in general. However, merging models is much more complex than merging source code. Since EMF models are rich data structures with constraints and behavior, merging them consistently is a delicate problem.

EMF Diff/Merge aims to help solve that problem. The tool is intended to satisfy the following requirements:

  • The consistency of the model being merged must be preserved whenever possible, by automatically merging interdependent differences together.
  • The order in which differences are merged must have no impact.
  • The global impact of a merge must be available beforehand (see picture below).
  • Undo/redo of merges must be supported.
  • The tool must scale to large models.


MainOverview.png

The scope of EMF Diff/Merge covers:

  • A lightweight, configurable engine for comparing and merging EMF models in 2-way and 3-way (with common ancestor) configurations.
  • Matching of model elements by ID, where an ID can be any "signature" that uniquely identifies the element within its scope: Ecore ID, XML ID, qualified name, location in model tree, etc.
  • A simple GUI with reusable UI components.

The final goal is to obtain a mature, versatile software building block for multiple usages: version control, incremental model transformations, model refactoring, etc.

The EMF Diff/Merge project is part of EMF.Usage

Download

The tool has been tested with Juno, Indigo and Helios (Eclipse Modeling 4.2, 3.7 and 3.6).

Links