Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial [message #506742] |
Sat, 09 January 2010 11:21 |
Simon Payne Messages: 2 Registered: January 2010 |
Junior Member |
|
|
I am new to EMF/M2M/QVTo, and checked out the org.eclipse.m2m.qvt.oml.econ2009.tutorial from CVS to try to familiarise myself with it.
I downloaded Eclipse Version: 3.4.2 which was the bundle named eclipse-modeling-ganymede-SR2-incubation-win32 with all the EMF tools. I am working on Windows XP Pro SP2.
However, I found straight away that the tutorial example fails to compile. I have an error in Ecore2UML.qvto on the second line
modeltype UML "strict" uses uml('http://www.eclipse.org/uml2/3.0.0/UML');
the error reads
Failed to resolve metamodel 'http://www.eclipse.org/uml2/3.0.0/UML'
I also get an error trying to run the transformation launcher Ecore2UML.launch:
Error: Invalid transformation URI 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '
Invalid transformation URI 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '
NB I don't have a problem with the first line of the transformation file which reads
modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore');
That one is recognised OK.
Have you any guidance, clues, hints etc to help me out?
UPDATE: I found that I can run the transformation when I change the problematic line to read
modeltype UML "strict" uses uml('http://www.eclipse.org/uml2/2.1.0/UML');
But there are still numerous compilation errors, and the transformation fails as before.
e.g
if(result.oclIsKindOf(Model)) then
result.packagedElement += object Package {
name := "importedTypes";
packagedElement += (umlModel.objects()[Type])[_package = null];
}
endif;
gives the error
Multiple markers at this line
- Cannot assign to this expression since it is not an lvalue
- missing "qvtErrorToken" to complete scope
thanks
Simon
[Updated on: Sat, 09 January 2010 11:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02591 seconds