Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF Compare] Merging non-containment references
[EMF Compare] Merging non-containment references [message #500370] Wed, 25 November 2009 19:05 Go to next message
Eclipse UserFriend
Originally posted by: mail.andreasscharf.com

Hi,

I have a question concerning merging non-containment references. I have
two ecore models:

ModelA
- EClassA
- EClassB


ModelB
- EClassA
- EClassB
- someReference : EClassA

If I now compare ModelA against ModelB the deleted reference is
recognized. I then merge the change from right to left and what I
was expecting is that I now have 'someReference:EClassA' under EClass B
which is basically is true. But the type of 'someReference' is a cross
reference into ModelB rather than to (the matched) EClassA in ModelA.

Is that wanted behavior?

Kind regards,
Andreas
Re: [EMF Compare] Merging non-containment references [message #500466 is a reply to message #500370] Thu, 26 November 2009 09:46 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080402080706030806080105
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Andreas,

Nope, that would be a bug. Stephen McCants raised a number of issues
through the JUnit tests attached to bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294336 yet I haven't
managed to fully fix them and integrate these tests yet. Does your bug
fall in one of these categories? If not, please raise a new one for your
particular issue.

Laurent Goubet
Obeo

Andreas Scharf wrote:
> Hi,
>
> I have a question concerning merging non-containment references. I have
> two ecore models:
>
> ModelA
> - EClassA
> - EClassB
>
>
> ModelB
> - EClassA
> - EClassB
> - someReference : EClassA
>
> If I now compare ModelA against ModelB the deleted reference is
> recognized. I then merge the change from right to left and what I
> was expecting is that I now have 'someReference:EClassA' under EClass B
> which is basically is true. But the type of 'someReference' is a cross
> reference into ModelB rather than to (the matched) EClassA in ModelA.
>
> Is that wanted behavior?
>
> Kind regards,
> Andreas


--------------080402080706030806080105
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------080402080706030806080105--
Previous Topic:the EMF Model interfaces can not be resolved.
Next Topic:EObject to XML
Goto Forum:
  


Current Time: Fri Apr 26 01:07:32 GMT 2024

Powered by FUDForum. Page generated in 0.02039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top