Skip to main content



      Home
Home » Modeling » UML2 » How to programmatically add an element as an owned element of another
How to programmatically add an element as an owned element of another [message #625459] Wed, 14 November 2007 05:48
Eclipse UserFriend
Hi,

Given a new element (E.g., a CreateObjectAction), and an existing element
(E.g., Activity), I need to set the CreateObjectAction as a child or owned
element of the Activity. I tried using
Activity.getOwnedElements().add(theCreateObjectAction) and also
allOwnedElements().add() but I get a UnsupportedOperationException. Need
help on the right API to use.

Thanks,
Francis
Previous Topic:UML2 Books
Next Topic:UML2 & OCL version compatibility
Goto Forum:
  


Current Time: Sun Aug 31 14:55:56 EDT 2025

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

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

Back to the top