Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] OPTION_DISTINCT_METAMODELS XML files
[EMF Compare] OPTION_DISTINCT_METAMODELS XML files [message #622161] Tue, 16 February 2010 15:35
Eclipse UserFriend
Originally posted by: mugbi83.googlemail.com

Hi
I have an other question concerning EMF Compare and the option
"OPTION_DISTINCT_METAMODELS"

I am trying to compare two XML models (in a standalone version) that
look like this

<?xml version="1.0" encoding="UTF-8"?>
<modrep:SchoolType xmlns:modrep="http://qe.informatik.uibk.ac.a/modrep">
<student name="Franz"/>
<student name="Otto"/>
<teacher name="Ludwig" teaches="Franz" Age="45.2" name2="Peter"/>
<teacher name="Ruth" teaches="Franz Otto" Age="35.1" name2="Gruber"/>
</modrep:SchoolType>

compared with

<?xml version="1.0" encoding="UTF-8"?>
<modrep:SchoolType xmlns:modrep="http://qe.informatik.uibk.ac.a/modrep">
<student name="Franz"/>
<student name="Otto"/>
<teacher name="Ludwig" teaches="Franz" Age="45.2"/>
<teacher name="Ruth" teaches="Franz Otto" Age="35.1"/>
</modrep:SchoolType>
--------------------------

Both models have different Ecore metamodels which are used to load them
into EObjects (name2 attribute added).

Since the metamodels are different I used the option
"OPTION_DISTINCT_METAMODELS". Without that option it actually works but
EMF Compare claims that the teachers were removed (the ones with name2)
and the ones without name2 were added. It does not recognize that just
an attribute changed ( was added).
When I used the option for distinct metamodels I just get an error that
name2 is no feature(The feature name2 does not exist in TeacherType.)
thrown by the function "checkForDiffs(current, match);".

Did I misunderstand the idea of the distinct metamodel option? Does
somebody have a hint on how to solve that problem?

Thank you very much
Philipp
Previous Topic:[EEF] Properties not displayed
Next Topic:[EEFT] How to constrain forms?
Goto Forum:
  


Current Time: Fri Apr 19 12:23:20 GMT 2024

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

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

Back to the top