The most conventional way to set the owner of any element is to add that
element to the appropriate containment reference of its intended parent.
e.g.,
someClass.getOwnedOperations().add(someOperation)
Some containments have settable inverses, but probably not all, so it's
easiest just to work top-down.
Cheers,
Christian
On 22/04/10 08:41 AM, Itamar wrote:
> Is there an API call to set an Element's owner? (e.g. set a Class's
> owning Package / set an Operation's owning Class)