Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Copying model element
Copying model element [message #472677] Thu, 19 April 2007 17:51 Go to next message
In-Gwon Song is currently offline In-Gwon SongFriend
Messages: 2
Registered: July 2009
Junior Member
Hello.

I'm trying to copy an Interaction and add the copied Interaction to the
model that have origirnal Interaction.

I have success to copy the Interaction, but I can't add the Interaction to
model.

How can I do that?

Thanks

In-Gwon Song
Re: Copying model element [message #472704 is a reply to message #472677] Fri, 20 April 2007 15:04 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi In-Gwon,

If you have your copy, then from the BehavioredClassifier where you want to
add the copy to, you can do something like ...
MyBehavioredClassifier#getOwnedBehaviors().add(myInteraction Copy);

Regards,

- James.



"In-Gwon Song" <songa@sparcs.kaist.ac.kr> wrote in message
news:f08ab8$sr2$1@build.eclipse.org...
> Hello.
>
> I'm trying to copy an Interaction and add the copied Interaction to the
> model that have origirnal Interaction.
>
> I have success to copy the Interaction, but I can't add the Interaction to
> model.
>
> How can I do that?
>
> Thanks
>
> In-Gwon Song
>
>
Re: Copying model element [message #608525 is a reply to message #472677] Fri, 20 April 2007 15:04 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi In-Gwon,

If you have your copy, then from the BehavioredClassifier where you want to
add the copy to, you can do something like ...
MyBehavioredClassifier#getOwnedBehaviors().add(myInteraction Copy);

Regards,

- James.



"In-Gwon Song" <songa@sparcs.kaist.ac.kr> wrote in message
news:f08ab8$sr2$1@build.eclipse.org...
> Hello.
>
> I'm trying to copy an Interaction and add the copied Interaction to the
> model that have origirnal Interaction.
>
> I have success to copy the Interaction, but I can't add the Interaction to
> model.
>
> How can I do that?
>
> Thanks
>
> In-Gwon Song
>
>
Previous Topic:[Announce] MDT UML2 2.1.0 I200704192355 is available
Next Topic:mapping of an association (with an interface as member end) to a link in the instance diagram !?
Goto Forum:
  


Current Time: Thu Apr 18 05:32:25 GMT 2024

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

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

Back to the top