[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.uml2] Re: Moving contents from an Association to an AssociationClass

Hi Andreas,

If you want to copy the contents of some structural feature such as
memberEnds you could just get the collection and do a
list.addAll() to the collection you want to move to.

If you want to get more advanced you could do something like the
UML22UMLResourceHandler.reincarnate() function.  This little gem looks at
all structural features and attempts to set all of them in a generic way in
the newly created object.

Cheers,

- James

"Andreas Morf" <andreas_morf@xxxxxxxxxx> wrote in message
news:eifp05$srb$1@xxxxxxxxxxxxxxxxxxxx
> Hi all,
> Within my application I don't know at the beginning if I'll need an
> Association or an AssociationClass so my question is:
> Is there a way to move the Association contents (memberEnds...) to an
> AssociationClass (and continuing adding Properties)?
>
> Unfortunytely im not clever enough to analyse how the UMLEditor is doing
it
> when I move memberEnds there... :-(
>
> Cheers, Andreas
>
>