Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbblajer2007-05-21 16:03:03 +0000
committerbblajer2007-05-21 16:03:03 +0000
commitf4508c27cef9b5c084d8ee223d5e9d1f57af28ae (patch)
tree1f14a1a3a9dfe170e946014fd40322753e7629d9 /plugins/org.eclipse.gmf.runtime.lite/src
parentd8318b6231f1709b9551e889d19f9473c9247db9 (diff)
downloadorg.eclipse.gmf-tooling-f4508c27cef9b5c084d8ee223d5e9d1f57af28ae.tar.gz
org.eclipse.gmf-tooling-f4508c27cef9b5c084d8ee223d5e9d1f57af28ae.tar.xz
org.eclipse.gmf-tooling-f4508c27cef9b5c084d8ee223d5e9d1f57af28ae.zip
Do not add the same listener more than once
Diffstat (limited to 'plugins/org.eclipse.gmf.runtime.lite/src')
-rw-r--r--plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/TransactionalUpdateManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/TransactionalUpdateManager.java b/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/TransactionalUpdateManager.java
index 470b1968f..75194e975 100644
--- a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/TransactionalUpdateManager.java
+++ b/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/TransactionalUpdateManager.java
@@ -287,7 +287,9 @@ public class TransactionalUpdateManager extends ResourceSetListenerImpl {
listeners = new LinkedList<INotationModelRefresher>();
myListeners.put(view, listeners);
}
- listeners.add(refresher);
+ if (!listeners.contains(refresher)) {
+ listeners.add(refresher);
+ }
if (myJustAddedListeners != null) {
myJustAddedListeners.add(refresher);
}

Back to the top