aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2010-10-14 11:11:07 (EDT)
committerPaul Webster2013-04-05 09:28:57 (EDT)
commit47284ec46d84c52e70fbdc967eb6e4de5ac1279d (patch)
tree4f2589cb49665b4aea8325e42309fed1ea8db082
parent2807df76af1d4f8994df3f97f32330db17d3a3df (diff)
downloadeclipse.platform.ui-47284ec46d84c52e70fbdc967eb6e4de5ac1279d.zip
eclipse.platform.ui-47284ec46d84c52e70fbdc967eb6e4de5ac1279d.tar.gz
eclipse.platform.ui-47284ec46d84c52e70fbdc967eb6e4de5ac1279d.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 {