diff options
author | Anton Leherbauer | 2007-05-21 07:49:06 +0000 |
---|---|---|
committer | Anton Leherbauer | 2007-05-21 07:49:06 +0000 |
commit | c29ea1ef6bd6ccebfff8cba65821455c41676ea0 (patch) | |
tree | 728389ab29f8a843f63cc4cbfe2fe87bfb9e9142 /debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java | |
parent | f2b9070846b9e50b1b5d13d8a1591a51891b75e7 (diff) | |
download | org.eclipse.cdt-c29ea1ef6bd6ccebfff8cba65821455c41676ea0.tar.gz org.eclipse.cdt-c29ea1ef6bd6ccebfff8cba65821455c41676ea0.tar.xz org.eclipse.cdt-c29ea1ef6bd6ccebfff8cba65821455c41676ea0.zip |
Open annotation model for other debug models (related to bug 186396)
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java')
-rw-r--r-- | debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java index 0519c7316bf..e7320912c2c 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/DebugMarkerAnnotationModel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2006 QNX Software Systems and others. + * Copyright (c) 2004, 2007 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * QNX Software Systems - Initial API and implementation + * Anton Leherbauer (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.debug.internal.ui; @@ -89,14 +90,10 @@ public class DebugMarkerAnnotationModel extends AbstractMarkerAnnotationModel im } private boolean isAcceptable( IBreakpoint b ) { - if ( b instanceof ICBreakpoint ) { - try { - String handle = ((ICBreakpoint)b).getSourceHandle(); - File file = new File( handle ); - return file.equals( getFile() ); - } - catch( CoreException e ) { - } + String handle = b.getMarker().getAttribute(ICBreakpoint.SOURCE_HANDLE, null); + if (handle != null) { + File file = new File( handle ); + return file.equals( getFile() ); } return false; } |