summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEric Moffatt2010-10-14 11:11:07 (EDT)
committer Paul Webster2013-02-14 08:49:31 (EST)
commitb2c04ce13649195893df2c2a637e013f9014fd25 (patch)
treec6ff302aaf1f4661ebc9f1c1a309fe5385192cc6
parentee57e66cde7637caf434dc4cbaa5b1362f022c85 (diff)
downloadeclipse.platform.ui-b2c04ce13649195893df2c2a637e013f9014fd25.zip
eclipse.platform.ui-b2c04ce13649195893df2c2a637e013f9014fd25.tar.gz
eclipse.platform.ui-b2c04ce13649195893df2c2a637e013f9014fd25.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 {