Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-06-23 14:35:49 -0400
committereutarass2011-06-23 14:35:49 -0400
commitb5b2e393127521d54ebe83c49a7bfabeba74d629 (patch)
treef6fa44f5fbb05015f9137332d036833f4d9aa959 /plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse
parentd094f2cbb1a9a3d82d1409de6873857d3a362b76 (diff)
downloadorg.eclipse.tcf-b5b2e393127521d54ebe83c49a7bfabeba74d629.tar.gz
org.eclipse.tcf-b5b2e393127521d54ebe83c49a7bfabeba74d629.tar.xz
org.eclipse.tcf-b5b2e393127521d54ebe83c49a7bfabeba74d629.zip
TCF Debugger: workaround: Eclipse 3.7 calls IModelProxy.installed and IModelProxy.dispose multiple times and in random order.
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModelProxy.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModelProxy.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModelProxy.java
index 953e4f8cb..4ad30e279 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModelProxy.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModelProxy.java
@@ -182,6 +182,7 @@ public class TCFModelProxy extends AbstractModelProxy implements IModelProxy, Ru
}
public void installed(Viewer viewer) {
+ if (isDisposed()) return;
super.installed(viewer);
((ITreeModelViewer)viewer).addViewerUpdateListener(update_listener);
Protocol.invokeAndWait(new Runnable() {
@@ -195,6 +196,7 @@ public class TCFModelProxy extends AbstractModelProxy implements IModelProxy, Ru
}
public void dispose() {
+ if (isDisposed()) return;
Protocol.invokeAndWait(new Runnable() {
public void run() {
assert !disposed;

Back to the top