Skip to main content



      Home
Home » Modeling » UML2 » How to Remove a Class from a Model
How to Remove a Class from a Model [message #628475] Fri, 28 May 2010 16:29 Go to next message
Eclipse UserFriend
Hello,
I want to programatically remove a class from a model (and all it's attributes, operations, associations ...).


Also i want to migrate attributes from one class to another.

It's simple to migrate an operation from a class to another : operation.setClass_(newClass);

Thank you very match.
Re: How to Remove a Class from a Model [message #628476 is a reply to message #628475] Fri, 28 May 2010 18:44 Go to previous message
Eclipse UserFriend
Hi,
I found it,

The Element metatype (the root of all other metatypes) has a destroy() method that removes all cross references and removes it from its containing resource.

Thanks.
Previous Topic:How to Remove a Class from a Model
Next Topic:Unable to retrieve stereotypes applied to Interface
Goto Forum:
  


Current Time: Wed Jul 23 15:10:08 EDT 2025

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

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

Back to the top