Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AMW » ERROR: could not find operation getReferredElement
ERROR: could not find operation getReferredElement [message #469581] Tue, 17 February 2009 14:58 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
<!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>
&nbsp;&nbsp; &nbsp;-- @subsets wovenModel<br>
&nbsp;&nbsp; &nbsp;reference coreModel container : WModelRef;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;reference adviceModel container : WModelRef;<br>
}<br>
<br>
class CombineResource extends WLink {<br>
<br>
&nbsp;&nbsp;&nbsp; -- @subsets end<br>
&nbsp;&nbsp;&nbsp; reference baseResource [*] container : Resource;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; -- @subsets end<br>
&nbsp;&nbsp;&nbsp; reference createAction [*] container : Action;&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; mmw : AMW!CombineResource ( not
mmw.baseResource-&gt;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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Juan Pedro<br>
</font></font></big></small><br>
</big></small>
</body>
</html>
Re: ERROR: could not find operation getReferredElement [message #469582 is a reply to message #469581] Wed, 18 February 2009 09:36 Go to previous messageGo to next message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 84
Registered: July 2009
Member
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.
Re: ERROR: could not find operation getReferredElement [message #469583 is a reply to message #469582] Wed, 18 February 2009 10:05 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
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.
>
Previous Topic:Problems with KM3 extension for HOT.
Next Topic:An internal error occurred during: "Launching...
Goto Forum:
  


Current Time: Thu Apr 18 23:03:39 GMT 2024

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

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

Back to the top