Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to remove an activity from a package
how to remove an activity from a package [message #473647] Wed, 04 July 2007 14:42 Go to next message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Hi All,
I hava a package which contains some activities, and I would like to remove
one activitiy from the package, which method should I use?
I am using package.getPackedElements().remove(activity) and
activity.setPackage(otherPackage), but all do not work.

Any solutions?

Thanks,
Eric
Re: how to remove an activity from a package [message #473648 is a reply to message #473647] Wed, 04 July 2007 15:00 Go to previous message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
the first one: package.getPackedElements().remove(activity) works. thanks
everyone! Eric
"Eric" <gonghongyan@hotmail.com> wrote in message
news:f6gbjr$8el$1@build.eclipse.org...
> Hi All,
> I hava a package which contains some activities, and I would like to
> remove one activitiy from the package, which method should I use?
> I am using package.getPackedElements().remove(activity) and
> activity.setPackage(otherPackage), but all do not work.
>
> Any solutions?
>
> Thanks,
> Eric
>
Re: how to remove an activity from a package [message #622720 is a reply to message #473647] Wed, 04 July 2007 15:00 Go to previous message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
the first one: package.getPackedElements().remove(activity) works. thanks
everyone! Eric
"Eric" <gonghongyan@hotmail.com> wrote in message
news:f6gbjr$8el$1@build.eclipse.org...
> Hi All,
> I hava a package which contains some activities, and I would like to
> remove one activitiy from the package, which method should I use?
> I am using package.getPackedElements().remove(activity) and
> activity.setPackage(otherPackage), but all do not work.
>
> Any solutions?
>
> Thanks,
> Eric
>
Previous Topic:how to remove an activity from a package
Next Topic:Issues with MagicDraw Models in New EMF Project
Goto Forum:
  


Current Time: Fri Apr 19 19:43:12 GMT 2024

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

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

Back to the top