ERROR: could not find operation getReferredElement [message #469581] |
Tue, 17 February 2009 09:58  |
Eclipse User |
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Marcos, a short question over an issue I can't figure out.<br>
Out of this weaving metamodel extension:<br>
<small><font face="Courier"><br>
<font color="#3366ff">package mm_weaving_JP {<br>
<br>
class WeavingModel extends WModel { <br>
<br>
-- @subsets wovenModel<br>
reference coreModel container : WModelRef;<br>
<br>
reference adviceModel container : WModelRef;<br>
}<br>
<br>
class CombineResource extends WLink {<br>
<br>
-- @subsets end<br>
reference baseResource [*] container : Resource;<br>
<br>
-- @subsets end<br>
reference createAction [*] container : Action; <br>
} <br>
<br>
class Resource extends WLinkEnd {<br>
}<br>
<br>
class Action extends WLinkEnd {<br>
}<br>
}</font><br>
<br>
</font><big>And the following code:<br>
<br>
<font face="Courier New, Courier, monospace"><small><font
color="#3366ff">rule CombineResource {<br>
from<br>
mmw : AMW!CombineResource ( not
mmw.baseResource->first().getReferredElement().oclIsU ndefined() )</font><br>
</small></font><br>
Why<small> <big>am I getting this error?:<br>
<br>
<font color="#3366ff">ERROR: could not find operation
getReferredElement on AMW!Resource having supertypes: [AMW!WLinkEnd,
OclType, OclAny] (including Java operations)<br>
<br>
<font color="#330033">Isn't the operation supposed to be available on a
WLinkEnd subclass?<br>
I'm having some trouble with AMW, and I'm trying to go back to my basic
assumptions. Thank for your help.<br>
Regards,<br>
Juan Pedro<br>
</font></font></big></small><br>
</big></small>
</body>
</html>
|
|
|
|
Re: ERROR: could not find operation getReferredElement [message #469583 is a reply to message #469582] |
Wed, 18 February 2009 05:05  |
Eclipse User |
|
|
|
Great, Marcos, that solved it, thanks.
Marcos Didonet Del Fabro escribió:
> Hello,
>
> when you configure the transformation (in the launch configuration of
> Eclipse), it is necessary to choose AMW Model Handler (instead of the
> default EMF model handler).
>
> The AMW model handler register these operations for the weaving model
> elements.
>
> Regards,
>
> Marcos.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02988 seconds