Executing Problem with Java API [message #568182] |
Tue, 18 August 2009 04:09  |
Eclipse User |
|
|
|
Hi,
I'm defining some textual tranformations for models based on the
Jadex metamodel. It works fine! However, when I try to
integrate my MOFScript transformation in a Java environment, using the
example given in the MOFScript User Guide, it doesn't work.
I took these errors;
Parsing result: 213 errors
: Error: MTTParseError: Illegal/unknown context: jadex, line: 649, column: 0
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 9, column: 12
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 15, column: 30
: Error: MTTParseError: Can't find feature 'package' for type 'Agent'., line: 17, column: 33
: Error: MTTParseError: Can't find feature 'description' for type 'Agent'., line: 19, column: 37
: Error: MTTParseError: Can't find feature 'propertyfile' for type 'Agent'., line: 21, column: 37
.............................
I think there is a problem with metamodel setting.
Can you help me, your code doesn't work in the guide.
Best regards,
Bekir
|
|
|
Re: Executing Problem with Java API [message #568211 is a reply to message #568182] |
Wed, 19 August 2009 05:10  |
Eclipse User |
|
|
|
Hello Bekir,
I am not sure this will solve the problem, but you could try adding a line
in the beginning of your code like:
JadexModelFactory _jadexModelFactory = JadexModelFactory.eINSTANCE;
If "Jadex"ModelFactory is the correct name in your case I dont know. Just
add the factory for your model.
Cheers,
G
|
|
|
Powered by
FUDForum. Page generated in 0.03846 seconds