Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Extending the differences model

Revision as of 05:04, 13 August 2007 by Unnamed Poltroon (Talk) (New page: =Concepts and overview= The diff (or delta) model is obtained at the end of the comparison process. This model basically says "The XX element has been added, the YY element has been moved ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Concepts and overview

The diff (or delta) model is obtained at the end of the comparison process. This model basically says "The XX element has been added, the YY element has been moved ..." . Using the generic diff engines you'll be able to detect the following operations : added, deleted, moved and renamed element, added,removed,updated attribute value, added, changed, removed reference value.

Some metamodels would need higher level operations, lets use UML2 as an example. Adding an UML2 association imply creating an "Association" element in the package, containing two "AssociationEnd", creating a "Property" object in each concerned "Class" and then setting linking these properties and the AssociationEnd.

This is quite complicated when you get that in your differencing view, that mean just for "Adding an UML2 association" you get 7 changes! And merging become quite a challenge cause merging only one of this change would leed to inconsistency.

And then DiffExtension arrives and save us ! This extension point is meant to clear such issues helping people to provide an "higher level" delta. Here it would be Adding UML2 Association..


API

Example

Back to the top