svn commit: r13787 - trunk/src_new/org/argouml/notation/providers/OperationNotation.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mvw
Date: 2007-11-18 06:56:32-0800
New Revision: 13787
Modified:
trunk/src_new/org/argouml/notation/providers/OperationNotation.java
Log:
Fix exceptions when reloading a class with an operation.
Modified: trunk/src_new/org/argouml/notation/providers/OperationNotation.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/notation/providers/OperationNotation.java?view=diff&rev=13787&p1=trunk/src_new/org/argouml/notation/providers/OperationNotation.java&p2=trunk/src_new/org/argouml/notation/providers/OperationNotation.java&r1=13786&r2=13787
==============================================================================
--- trunk/src_new/org/argouml/notation/providers/OperationNotation.java (original)
+++ trunk/src_new/org/argouml/notation/providers/OperationNotation.java 2007-11-18 06:56:32-0800
@@ -94,15 +94,17 @@
removeElementListener(listener, pce.getOldValue());
}
}
- // We also show types of parameters
- for (Object param : Model.getFacade().getParameters(modelElement)) {
- if (pce.getSource() == param
- && ("type".equals(pce.getPropertyName()))) {
- if (pce instanceof AddAssociationEvent) {
- addElementListener(listener, pce.getNewValue());
- }
- if (pce instanceof RemoveAssociationEvent) {
- removeElementListener(listener, pce.getOldValue());
+ if (!Model.getUmlFactory().isRemoved(modelElement)) {
+ // We also show types of parameters
+ for (Object param : Model.getFacade().getParameters(modelElement)) {
+ if (pce.getSource() == param
+ && ("type".equals(pce.getPropertyName()))) {
+ if (pce instanceof AddAssociationEvent) {
+ addElementListener(listener, pce.getNewValue());
+ }
+ if (pce instanceof RemoveAssociationEvent) {
+ removeElementListener(listener, pce.getOldValue());
+ }
}
}
}