|
|
|
|
|
|
Re: Applying a ChangeDescription to a different model [message #531957 is a reply to message #531868] |
Thu, 06 May 2010 15:07 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Csaba,
Using applyAndReverse you can achieve the inverted set of changes and of
course you can do it again to get back to the final state.
Alternatively you could copy the model and the change description
(EcoreUtil.copyAll) and then invert that copy.
Csaba Koncz wrote:
> Scott Dybiec wrote on Mon, 12 April 2010 07:01
>> I have written some code that captures changes to an EMF Resource
>> (capture-side) and applies those changes to a remote replica copy
>> (apply-side).
>>
>> $cott
>
>
> I would like to do the same thing, but I can not. The
> ChangeDescription created by ChangeRecorder contains the old state of
> the model, so I can only use it to undo the changes. What I need is to
> keep two model instances in sync. Is there a dedicated change model
> and recorder for this?
> Thank you,
> Csaba
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02713 seconds