Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-01-05 13:51:04 -0500
committerPawel Piech2010-01-05 13:51:04 -0500
commitf311d7b8b6719af1a460b8228a4edda043c81668 (patch)
tree44ec8bd0c0cf1d6ad1a02ec53eb41e74413de9d8 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model
parentf956049fc9a271fb80221e9bd1ac2b617f708381 (diff)
downloadeclipse.platform.debug-f311d7b8b6719af1a460b8228a4edda043c81668.tar.gz
eclipse.platform.debug-f311d7b8b6719af1a460b8228a4edda043c81668.tar.xz
eclipse.platform.debug-f311d7b8b6719af1a460b8228a4edda043c81668.zip
Bug 298878 - Deadlock in breakpoints view
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/AbstractBreakpointManagerContentProvider.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/AbstractBreakpointManagerContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/AbstractBreakpointManagerContentProvider.java
index 939c0a715..0c8bf557b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/AbstractBreakpointManagerContentProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/AbstractBreakpointManagerContentProvider.java
@@ -110,13 +110,16 @@ public abstract class AbstractBreakpointManagerContentProvider extends ElementCo
registerOrganizersListener(null, fOrganizers);
}
- synchronized void proxyInstalled(AbstractModelProxy proxy) {
- fProxies.add(proxy);
-
- // Generate an install delta
-
- ModelDelta rootDelta = new ModelDelta(fInput, 0, IModelDelta.NO_CHANGE, -1);
- buildInstallDelta(rootDelta, fContainer);
+ void proxyInstalled(AbstractModelProxy proxy) {
+ ModelDelta rootDelta = null;
+ synchronized(this) {
+ fProxies.add(proxy);
+
+ // Generate an install delta
+
+ rootDelta = new ModelDelta(fInput, 0, IModelDelta.NO_CHANGE, -1);
+ buildInstallDelta(rootDelta, fContainer);
+ }
proxy.fireModelChanged(rootDelta);
}

Back to the top