Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProperty 'ownedPort' is read-only
https://www.eclipse.org/forums/index.php/mv/msg/452394/1006495/#msg_1006495
I've defined a mapping that takes an "inout cls:Class" as argument and returns an "UML::Port". The mapping contains the following statement:
cls.ownedPort += result;
It works in IndigoSR2 but I cannot get it working in JunoSR1. I get the following error: "Property 'ownedPort' is read-only". How do I fix this issue?
Thanks,
--
Matteo]]>Matteo M.2013-01-31T14:01:16-00:00Re: Property 'ownedPort' is read-only
https://www.eclipse.org/forums/index.php/mv/msg/452394/1006502/#msg_1006502
Juno introduced UML 2.4.1 support, so you have probably changed UML
versions.
You should use ownedAttribute instead of ownedPort.
Regards
Ed Willink
On 31/01/2013 14:01, Matteo M. wrote:
> Hi,
>
> I've defined a mapping that takes an "inout cls:Class" as argument and
> returns an "UML::Port". The mapping contains the following statement:
>
> cls.ownedPort += result;
>
> It works in IndigoSR2 but I cannot get it working in JunoSR1. I get
> the following error: "Property 'ownedPort' is read-only". How do I fix
> this issue?
>
> Thanks,
>
> --
> Matteo]]>Ed Willink2013-01-31T14:17:33-00:00Re: Property 'ownedPort' is read-only
https://www.eclipse.org/forums/index.php/mv/msg/452394/1006518/#msg_1006518
Quote: