|How to delete stereotype from the persisted file? [message #626908]
||Tue, 09 September 2008 13:34
Originally posted by: zhengxie.ie.ibm.com|
when delete a uml element, its applied stereotype is unapplied and can't
be deleted from the persisted file.
if you need more info, please read on:
A class has a stereotype application as following, by "base_Class",
its properties have stereotype applications too.
<packagedElement xmi:type="uml:Class" xmi:id="_2Cm51SVlEdyPG407Qktk6Q"
after the class is destroyed by calling
the stereotype is unapplied, but the following is left in the file
Then I use the following code:
for (Iterator iter = element.getAppliedStereotypes().iterator();
Stereotype type = (Stereotype) iter.next();
still the same result.
Can these unapplied stereotypes being deleted also?
I try to delete them from the resource, but the stereotype in the
resource is loaded as DynamicEobject...
Basicly what I need is, when delete a uml element, its applied
stereotype is unapplied and also deleted from the persisted file.
What can be done?
Thanks a million.
Powered by FUDForum
. Page generated in 0.01690 seconds