Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2001-09-06 13:23:18 +0000
committerDarin Wright2001-09-06 13:23:18 +0000
commitfe3956ba2d19e0fb5348e79266ea41b14bb970f6 (patch)
treec9a5d693b8238eb48b5da92f82914dcba45d1191
parentb7138f52e725823776a309dba24db4bebdfbb79b (diff)
downloadeclipse.platform.debug-fe3956ba2d19e0fb5348e79266ea41b14bb970f6.tar.gz
eclipse.platform.debug-fe3956ba2d19e0fb5348e79266ea41b14bb970f6.tar.xz
eclipse.platform.debug-fe3956ba2d19e0fb5348e79266ea41b14bb970f6.zip
breakpoint work
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java26
1 files changed, 15 insertions, 11 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
index 9e27146a7..cb3cce4e4 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
@@ -362,21 +362,25 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
}
}
};
- Runnable runnable= new Runnable() {
- public void run() {
- try {
- workspace.run(wRunnable, null);
- } catch (CoreException ce) {
- logError(ce);
- }
- }
- };
- new Thread(runnable).start();
+ fork(wRunnable);
} else {
// do nothing - we do not add until explicitly added
}
}
+ protected void fork(final IWorkspaceRunnable wRunnable) {
+ Runnable runnable= new Runnable() {
+ public void run() {
+ try {
+ getWorkspace().run(wRunnable, null);
+ } catch (CoreException ce) {
+ logError(ce);
+ }
+ }
+ };
+ new Thread(runnable).start();
+ }
+
/**
* Wrapper for handling removes
*/
@@ -395,7 +399,7 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
* Wrapper for handling changes
*/
protected void handleChangeBreakpoint(IMarker marker, IMarkerDelta delta) {
- IBreakpoint breakpoint= getBreakpoint(marker);
+ final IBreakpoint breakpoint= getBreakpoint(marker);
if (isRegistered(breakpoint)) {
fireUpdate(breakpoint, delta, CHANGED);
}

Back to the top