Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2001-08-24 15:14:19 +0000
committerDarin Wright2001-08-24 15:14:19 +0000
commit9c0aec215837308f91b7d88792927779676ee91a (patch)
treee86773c2ca337b9895538e24859fc4312ba8162c /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java
parent8b274fcc46d6c5cdaf15ec79cc1b26eb62c276c5 (diff)
downloadeclipse.platform.debug-9c0aec215837308f91b7d88792927779676ee91a.tar.gz
eclipse.platform.debug-9c0aec215837308f91b7d88792927779676ee91a.tar.xz
eclipse.platform.debug-9c0aec215837308f91b7d88792927779676ee91a.zip
1GI3JYO: ITPDUI:ALL - The case for IBreakpoints
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java
index 62f6d769b..b8a31faf5 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DelegatingModelPresentation.java
@@ -227,14 +227,14 @@ public class DelegatingModelPresentation implements IDebugModelPresentation {
} else
if (element instanceof IMarker) {
try {
- IMarker m= (IMarker) element;
- if (m.exists() && m.isSubtypeOf(IDebugConstants.BREAKPOINT_MARKER)) {
- if (DebugPlugin.getDefault().getBreakpointManager().isEnabled(m)) {
+ IMarker marker= (IMarker) element;
+ IBreakpoint breakpoint= DebugPlugin.getDefault().getBreakpointManager().getBreakpoint(marker);
+ if (breakpoint.exists()) {
+ if (breakpoint.isEnabled()) {
return DebugPluginImages.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT);
} else {
return DebugPluginImages.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT_DISABLED);
}
-
}
} catch (CoreException e) {
DebugUIUtils.logError(e);

Back to the top