[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.tools] Problems deleting classes/interfaces with associations

Hi all!

I have been working with the UML2 class diagram editor, and I have found a 
problem in the deletion mechanism of interfaces/classes. If I define two 
classes, and a an association between them, if I want to delete one of the 
classes I _must_ delete first the association defined between the clases, 
and then, the class.

If I try to remove directly the class, the class is not always removed, and 
the association remains in the *.uml model (but incomplete). Should I post a 
new bugzilla post for that issue?

And... how can I extend the deletion mechanism to automatically remove the 
associations (or at least, tell the user to remove first the associations 
involved manually)? I have tried to modify the method 
getDestroyElementCommand(...) in 
org.eclipse.uml2.diagram.clazz.edit.policies.ClassItemSemanticEditPolicy, 
but I didn't find the way to do it.

Regards,

A. Gómez