Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhussey2006-06-06 22:22:28 +0000
committerkhussey2006-06-06 22:22:28 +0000
commit31f2fb6c98e323f08f684087febd44c0cc27a6d2 (patch)
tree7c320a70de555c625e39fc9683bca73fda6ae6a6
parent87535d941c6a92bf97ca1eeba7247f6303cba268 (diff)
downloadorg.eclipse.uml2.test-31f2fb6c98e323f08f684087febd44c0cc27a6d2.tar.gz
org.eclipse.uml2.test-31f2fb6c98e323f08f684087febd44c0cc27a6d2.tar.xz
org.eclipse.uml2.test-31f2fb6c98e323f08f684087febd44c0cc27a6d2.zip
[145075] Clearing values map when target is unset.
-rw-r--r--plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java b/plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java
index a555f1fd..4012237f 100644
--- a/plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java
+++ b/plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: CacheAdapter.java,v 1.11 2006/06/03 00:55:51 khussey Exp $
+ * $Id: CacheAdapter.java,v 1.12 2006/06/06 22:22:28 khussey Exp $
*/
package org.eclipse.uml2.common.util;
@@ -114,6 +114,18 @@ public class CacheAdapter
}
}
+ protected void unsetTarget(EObject target) {
+ super.unsetTarget(target);
+
+ clear(target.eResource());
+ }
+
+ protected void unsetTarget(Resource target) {
+ super.unsetTarget(target);
+
+ clear(target);
+ }
+
public void notifyChanged(Notification msg) {
super.notifyChanged(msg);

Back to the top