summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEric Moffatt2013-04-04 13:29:15 (EDT)
committer Dani Megert2013-04-05 07:21:37 (EDT)
commit2223c41bef449202fb6017ee8d7a571cf3e5010f (patch)
tree1723f00a9031752fcca5d3e5fc87282fa016d5cc
parentc626bd396fa2b29bc64919e658b3f2c0045f9e0e (diff)
downloadeclipse.platform.ui-2223c41bef449202fb6017ee8d7a571cf3e5010f.zip
eclipse.platform.ui-2223c41bef449202fb6017ee8d7a571cf3e5010f.tar.gz
eclipse.platform.ui-2223c41bef449202fb6017ee8d7a571cf3e5010f.tar.bz2
Fix for Bug 398509 - Regression to 4.2.1: Sending of postSelection
events stops working
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java
index 2fb7e59..2b45274 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java
@@ -264,6 +264,9 @@ public class SelectionAggregator {
String partId = part.getElementId();
boolean continueTracking = targetedListeners.containsKey(partId)
|| targetedPostListeners.containsKey(partId);
+ if (!continueTracking) {
+ tracked.remove(part.getContext());
+ }
return continueTracking;
}
return true;