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 #536602] 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 #536624 is a reply to message #536602] 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: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: Sat Sep 20 06:16:46 GMT 2014

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

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