Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MOFScript » Executing Problem with Java API
Executing Problem with Java API [message #568182] Tue, 18 August 2009 08:09 Go to next message
Bekir  is currently offline Bekir Friend
Messages: 5
Registered: August 2009
Junior Member
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 09:10 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
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
Previous Topic:Contribution for MOFScript project
Next Topic:Executing Problem with Java API
Goto Forum:
  


Current Time: Sun Aug 02 00:30:24 GMT 2015

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

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