Problem copy sterotype [message #628568] |
Mon, 09 August 2010 13:10  |
Eclipse User |
|
|
|
Hi,
I'd like to copy a Port and all its stereotypes; i tried with EcoreUtil.Copier but it copies only the port and not its stereotypes.
How can I do this?
Thanks in advance, 123star
|
|
|
|
Re: Problem copy sterotype [message #628620 is a reply to message #628568] |
Wed, 01 September 2010 12:28  |
Eclipse User |
|
|
|
Hi, 123star,
The EcoreUtil::Copier can copy a collection of objects. Copy the Port
and its applied stereotypes (using Element::getStereotypeApplications()
API or some such; I forget the exact name) in one copy operation. The
copier will ensure that the stereotype copies correctly link to the port
copy.
HTH,
Christian
On 09/08/10 01:10 PM, 123star wrote:
> Hi,
>
> I'd like to copy a Port and all its stereotypes; i tried with
> EcoreUtil.Copier but it copies only the port and not its stereotypes.
>
> How can I do this?
>
> Thanks in advance, 123star
|
|
|
Powered by
FUDForum. Page generated in 0.03303 seconds