diff options
author | khussey | 2006-06-06 22:22:28 +0000 |
---|---|---|
committer | khussey | 2006-06-06 22:22:28 +0000 |
commit | 31f2fb6c98e323f08f684087febd44c0cc27a6d2 (patch) | |
tree | 7c320a70de555c625e39fc9683bca73fda6ae6a6 /plugins/org.eclipse.uml2.common | |
parent | 87535d941c6a92bf97ca1eeba7247f6303cba268 (diff) | |
download | org.eclipse.uml2-31f2fb6c98e323f08f684087febd44c0cc27a6d2.tar.gz org.eclipse.uml2-31f2fb6c98e323f08f684087febd44c0cc27a6d2.tar.xz org.eclipse.uml2-31f2fb6c98e323f08f684087febd44c0cc27a6d2.zip |
[145075] Clearing values map when target is unset.
Diffstat (limited to 'plugins/org.eclipse.uml2.common')
-rw-r--r-- | plugins/org.eclipse.uml2.common/src/org/eclipse/uml2/common/util/CacheAdapter.java | 14 |
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 a555f1fd4..4012237fc 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); |