Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314535 - [EMF Compare] Customizing Copier
Summary: [EMF Compare] Customizing Copier
Status: CLOSED INVALID
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 13:08 EDT by Christian Schneider CLA
Modified: 2011-08-09 07:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schneider CLA 2010-05-26 13:08:50 EDT
Build Identifier: 

I'd like to customize the copier that is used by the EMF compare merger.
Please introduce an extension/registration mechanism like available for the particular mergers.

Rational:
If I try to merge (to copy from left to right) a nested element like a variableReference referring to a variableElement (which is available in both models) by means of an EReference, this EReference of the new  variableReference (right model) won't be setup correctly.
Either it is null or refers to the variableElement in the left model.

I guess repairing this in general is not faesible in the short term so I'd like fix this on my own by customizing the copier.

Unfortunately, I need this pretty much right now.

Reproducible: Always
Comment 1 Cedric Brun CLA 2010-05-26 15:58:20 EDT
Hi Christian, 

Unfortunately the API freeze for the Eclipse Helios release is way behind us (April) and we're in "complete freeze except critical bugfixes" until the final 1.1.0 release (11 of June)

Once it is released we can consider making such changes but in the newly created 1.2.x stream.

As it looks like it is quite a important issue, if you come up with a fix which doesn't look too dangerous we can consider integrating it quickly after the release and provide an 1.1.1 interim build.
Comment 2 Laurent Goubet CLA 2011-03-10 09:10:49 EST
I haven't given an in-depth look into this, but t seems to me that the necessary classes are already API and customizable?

EMFCompareEObjectCopier can be overriden, as is the MergeService and the DefaultMerger (albeit only for your own implementation of mergers). What exactly would you like provided as public API from EMF Compare?
Comment 3 Laurent Goubet CLA 2011-08-09 07:40:42 EDT
Was already API, and no input from reporter.