|Re: EMF Compare Example [message #621519 is a reply to message #621518]
||Tue, 27 October 2009 08:37
|| Laurent Goubet
Registered: July 2009
This is a multi-part message in MIME format.|
Content-Type: text/plain; charset=UTF-8; format=flowed
comments inlined below.
saad bin abid a écrit :
> Hello Fellow Emf compare users,
> I am very new to EMF compare and have just started with it. I have
> downloaded all plug-ins and started working with initial examples. which
> worked fine for me. But now.I am having trouble in comparing and
> understanding Emf merge model.
> 1. I am comparing two models, instances of same meta model. after
> executing EMF compare i get *.emfdiff file i am having same left and
> right elements and references to them even though i am loading both from
> difference directories resources (But in the same resource). same names
> and elements but different "hrefs" for left and right model. I am
> confused why is it so?
Don't really understand your question here. Different hrefs means the
two elements are not "the same". You're probably looking at a
MatchElement which "left" reference points to the left model and "right"
reference to the right model. These elements allow us to match similar
elements from both models, and looking at the MatchElement in "visual"
mode (in the sample ecore editor) will probably give two elements
looking really similar if you haven't changed the name of one of the two
in one of the two models.
> 2. When i try to traverse for unmatched elements (after change by adding
> new elements to left model) i cannot traverse it properly? (any example
Sorry, don't understand your question. What does "I cannot traverse it
properly" mean? You get an exception? How do you "traverse" your
elements : in the sample ecore editor, through code, ...? Examples of a
comparison from start to finish, merge included, can be found in the
> 3. I would to solve the following scenario with emf compare
> model a
> model b
> in the beginning both are having similar elements in them .
> i am changing model "a" and than comparing it with model "b". now i want
> to synchronize "b" w.r.t "a" automatically. Is there anyway in EMF
> compare untility?
Comparing a and b is done through
The same kind of facility is accessible for the merge through
> thank you very much for consideration
Content-Type: text/x-vcard; charset=utf-8;
Powered by FUDForum
. Page generated in 0.02704 seconds