Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums
-
[MOFScript]
https://www.eclipse.org/forums/index.php/mv/msg/123949/379042/#msg_379042
I would like to run Mofscript files from Java. I have no problem if I
execute the main Mofscript transformation with the Mofscript interface.
The problem is that my input model is extension .mmdc (created by GMF)
then when I try to execute it from my java code I get the errors:
Parsing result: 14 errors
: Error: MTTParseError: Illegal/unknown context: mm, line: 0, column: 0
: Error: MTTParseError: Type not found: 'Clase' in metamodel 'null', line:
0, column: 0
: Error: MTTParseError: Can't find feature 'clases' for type 'Root'.,
line: 30, column: 45
: Error: MTTParseError: Type not found: 'Asociacion' in metamodel 'null',
line: 0, column: 0
: Error: MTTParseError: Can't find feature 'asociaciones' for type
'Root'., line: 64, column: 43
: Error: MTTParseError: Can't find feature 'clasesAsociacion' for type
'Root'., line: 67, column: 18
: Error: MTTParseError: Cannot find import: cabecera.m2t, line: 8, column:
7
: Error: MTTParseError: Cannot find import: clase.m2t, line: 9, column: 7
: Error: MTTParseError: Cannot find import: asociacion.m2t, line: 10,
column: 7
: Error: MTTParseError: Cannot find import: herencia.m2t, line: 12,
column: 19
: Error: MTTParseError: Undefined function call: generarCabecera, line:
27, column: 19
: Error: MTTParseError: Undefined function call: generarClase, line: 34,
column: 26
: Error: MTTParseError: Undefined function call: generarHerencia, line:
43, column: 34
: Error: MTTParseError: Undefined function call: generarAsociacion, line:
67, column: 18
this is because it don't know my input metamodel(.mmdc) but I donŽt know
how to do it...
Any idea?
Thank all
mary]]>
mary
2007-08-18T20:08:27-00:00