Questions tagged [emf-compare]

EMF Compare is an Eclipse plug-in that provides model comparison support for the Eclipse Modeling Framework (EMF). See "about the EMF Compare tag" for initial help.

EMF Compare provides comparison and merge facility for any kind of EMF Model (models created using the Eclipse modeling framework (EMF). It is part of the Eclipse foundation, and distributed as part of its annual release train since Eclipse Callisto (version 3.2).

All of the documentation for EMF Compare can be found on the Eclipse wiki.

16 questions
3
votes
1 answer

How to integrate emf compare with eclispe team support

I'm using Emf Compare 2 to integrate with team support from eclipse. I follow the instruction from emf compare faq page here but it appears that the content-type id "org.eclipse.emf.compare.ui.contenttype.ModelContentType" is no longer valid.…
wakandan
  • 1,099
  • 4
  • 19
  • 27
2
votes
1 answer

How to get correct Diffs when using EMF compare on structurally equal objects which are different as per ==?

Followups below Let's say I have this simple model (Xcore syntax): class A { contains B[] bs opposite a } class B { String foo container A a opposite bs } I now have three A's, created like the following: A a1 =…
rabejens
  • 7,594
  • 11
  • 56
  • 104
2
votes
1 answer

graphviz - compare graphic trees

I have to do a job with graphviz. I need to visualize the graphic representation of several trees, but in any case I have to compare two tree to see their differences: something like this, I have tree A and tree B. After create their representation…
user2343521
  • 137
  • 1
  • 8
2
votes
1 answer

Compilation issue with EMF Compare code

Version of EMF Compare: 2.1.0 M6 (2013/03/19 17:50) I am trying to use standalone compare as explained in this guide. I get the below compilation error The method setMatchEngine(IMatchEngine) is undefined for the type EMFCompare.Builder for the…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
3 answers

EMF Compare two models

I want to compare two models which are compliant to a given ecore metamodel like this: public void compare() { URI uri1 = URI.createFileURI("file1.xmi"); URI uri2 = URI.createFileURI("file2.xmi"); …
landunder
  • 372
  • 1
  • 5
  • 17
1
vote
0 answers

EMF compare tool cannot identify 'nestedClassifier' when comparing UML model

We attempt to use EMF compare tool in Eclipse for comparing the following UML model:
user4816915
  • 123
  • 7
1
vote
1 answer

EMF Compare - How to ignore identifiers

I have 2 models to compare. In my *.ecore model, I have an "Id" attribute and its ID property have been setted to true. I am using EcoreUtil.generateUUID() for unique ids. In my case, I have one ready model and I am creating a new one in runtime.…
fukit0
  • 924
  • 1
  • 11
  • 35
1
vote
1 answer

Setting up EMF Compare on Eclipse and compiling

How do I checkout and set up EMF Compare on Eclipse? I found the website Contributor Guide for EMF compare: http://wiki.eclipse.org/EMF_Compare/Contributor_Guide But they do not have enough instructions. I check out master branch There are tons of…
Whitecat
  • 3,882
  • 7
  • 48
  • 78
0
votes
0 answers

loader constraint violation when launching an EMF compare comparison(and proper tools for model comparison.)

I'd like some insight on a couple of topics :"EMF compare" and "model to model comparison" in general. I am trying to achieve a comparison between two XMI models, which are different from each other (i) the first is an output model which is the…
0
votes
1 answer

Retrieving the "match of value" in an ADD Diff computed by EMF Compare

I am fairly new to EMF and have recently started using EMF Compare to compute the differences between two models. For the moment, those differences are simply printed to the console, and I try to retrieve all the useful information from them. When I…
Kins
  • 547
  • 1
  • 5
  • 22
0
votes
1 answer

EMF Compare programatically for local history of uml file

I am trying to compare a uml file with its local history. Is it possible to do it programatically?
astgvr86
  • 15
  • 5
0
votes
1 answer

Hiding nodes in the model tree of EMF Compare

I would like to hide some tree nodes in the match results of EMF Compare, since they are just containers with no meaning to our users. I have tried two approaches, but both result in some unwanted side-effects. Using a more narrow scope …
Mattias Backman
  • 927
  • 12
  • 25
0
votes
1 answer

Accessing elements properties in a EMF Compare Diff Model

I have used EMF Compare to compare 2 models comforming to a custom metamodel. I generated and saved the Diff model to an .xmi file. Currently, I am working on how to use the Diff Model within ATL to transform the differences to another model. The…
user3488996
  • 1,339
  • 2
  • 10
  • 13
0
votes
1 answer

EMF model comparison with EMF Compare

I have two versions of the EMF instances that are based on the same ecore model. I need to prepare a list of things that changed from v1 to v2 in the following format For each object in the model Object Name: Modified Attributes: Added…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

EMF Compare: DifferenceKind is ADD and DELETE instead of CHANGE. Why?

Below are 2 versions of my emf instance docs. As you can see the only thing that changed is the value of 'productCode' value from KAF to Changed. But compare is treating this as two changes ADD and DELETE. Not sure why? Version…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
2