Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [MOFScript] _getFeature problem
[MOFScript] _getFeature problem [message #375962] Wed, 21 February 2007 08:02 Go to next message
Eclipse UserFriend
Originally posted by: angel.calvo.centic.es

Hello, I've tried use the operation _getFeature to access to a List
element of my metamodel in the context of a rule. But I get a lot of
parse errors. Is it a problem with MOFScript parser or the code is wrong?

m._getFeature("List")::genParagraphElement(nivel:Integer) {
...
}

Thanks.
Re: [MOFScript] _getFeature problem [message #375965 is a reply to message #375962] Wed, 21 February 2007 14:54 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,

Unfortunately this is a problem with the parser, the _getFeature() can only
be used inside a body of a rule and not as context.

We will place it on the todo list, it should be possible to write
m.List::genParagraphElement().

Regards,
G
Re: [MOFScript] _getFeature problem [message #571495 is a reply to message #375962] Wed, 21 February 2007 14:54 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,

Unfortunately this is a problem with the parser, the _getFeature() can only
be used inside a body of a rule and not as context.

We will place it on the todo list, it should be possible to write
m.List::genParagraphElement().

Regards,
G
Previous Topic:AM3 Tools - docs
Next Topic:xText: any text rule
Goto Forum:
  


Current Time: Fri Nov 21 16:56:24 GMT 2014

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

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