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 20: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 22: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: Thu Oct 30 13:49:25 GMT 2014

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

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