Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
naoufel1986 is currently offline naoufel1986
Messages: 6
Registered: May 2010
Junior Member
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
naoufel1986 is currently offline naoufel1986
Messages: 6
Registered: May 2010
Junior Member
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 Aug 20 18:28:42 EDT 2014

Powered by FUDForum. Page generated in 0.01970 seconds