summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEric Moffatt2010-10-14 11:11:07 (EDT)
committer Paul Webster2013-02-14 08:45:17 (EST)
commitaaf11be5c286198d040428ce8a75edced0c25e8e (patch)
treedeeb87c62bad4cba4b778c90450f2a5f57a273c5
parent1101e3ab94927e6b8f3244fd99ae250f7933b295 (diff)
downloadeclipse.platform.ui-aaf11be5c286198d040428ce8a75edced0c25e8e.zip
eclipse.platform.ui-aaf11be5c286198d040428ce8a75edced0c25e8e.tar.gz
eclipse.platform.ui-aaf11be5c286198d040428ce8a75edced0c25e8e.tar.bz2
Fix for Bug 321155 - [DynamicGUI] UIExtensionTracker calling Display.syncExec() on disposed Display
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java
index 5154f71..6bf7569 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java
@@ -39,7 +39,10 @@ public class UIExtensionTracker extends ExtensionTracker {
}
protected void applyRemove(final IExtensionChangeHandler handler, final IExtension removedExtension, final Object[] objects) {
- display.syncExec(new Runnable() {
+ if (display.isDisposed())
+ return;
+
+ display.syncExec(new Runnable() {
public void run() {
try {
@@ -52,6 +55,9 @@ public class UIExtensionTracker extends ExtensionTracker {
}
protected void applyAdd(final IExtensionChangeHandler handler, final IExtension addedExtension) {
+ if (display.isDisposed())
+ return;
+
display.syncExec(new Runnable() {
public void run() {
try {