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 #536602] 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 #536624 is a reply to message #536602] 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:In profile, In Ecore represention of the profile why do we have an eannotation UML (source = http://
Next Topic:How to Remove a Class from a Model
Goto Forum:
  


Current Time: Tue Jul 22 23:34:32 EDT 2025

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

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

Back to the top