Using EMFResourceMappingMerger in core [message #1745482] |
Tue, 11 October 2016 08:39  |
Eclipse User |
|
|
|
Hi,
I am trying to detect conflicting changes between two models without modifying the files in which these models are serialized on the file system. In other words, I would like to perform this operation in core.
I am therefore using the following line of code to obtain a ResolveMerger instance:
ResolveMerger merger = (ResolveMerger) new StrategyRecursiveModel().newMerger(repo, true);
Notice that the inCore parameter of newMerger() is set to true.
When invoking the merge() method of this ResolveMerger instance, the call is eventually delegated to the merge() method of the EMFResourceMappingMerger class. This method always modifies the model files if it detects conflicts, effectively violating the contract of the newMerger(repo, true) call above by ignoring the value of the inCore parameter.
Is this apparent contract violation a bug?
And is there a way to use the EMFResourceMappingMerger without modifying any files on the file system?
Thanks in advance!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03451 seconds