aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-02-01 11:50:14 (EST)
committerOleg Besedin2012-02-01 11:50:14 (EST)
commit91ce3bfb91160dc02c32da1c0f92765d225f6308 (patch)
treee679fd7e7945c311e720d7c38b6a230564f1640e
parentf876fcac1d5c3d445342f1ea15d31dc9f5e1bd86 (diff)
downloadeclipse.platform.ui-91ce3bfb91160dc02c32da1c0f92765d225f6308.zip
eclipse.platform.ui-91ce3bfb91160dc02c32da1c0f92765d225f6308.tar.gz
eclipse.platform.ui-91ce3bfb91160dc02c32da1c0f92765d225f6308.tar.bz2
runExternalCode(Runnable runnable)v20120201-1650
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/SelectionAggregator.java16
1 files changed, 10 insertions, 6 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 08df85a..820ab1f 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
@@ -158,13 +158,17 @@ public class SelectionAggregator {
if (activePart == part) {
myContext.set(IServiceConstants.ACTIVE_SELECTION, selection);
- pauseRecording();
- notifyListeners(part, selection);
- resumeRecoding();
+ runExternalCode(new Runnable() {
+ public void run() {
+ notifyListeners(part, selection);
+ }
+ });
} else {
- pauseRecording();
- notifyTargetedListeners(part, selection);
- resumeRecoding();
+ runExternalCode(new Runnable() {
+ public void run() {
+ notifyTargetedListeners(part, selection);
+ }
+ });
// we don't need to keep tracking non-active parts unless
// they have targeted listeners
String partId = part.getElementId();