Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-02-11 11:04:04 +0000
committerAnton Leherbauer2008-02-11 11:04:04 +0000
commit5fc7679c0501535b77f835e5fc2d79f9435065c5 (patch)
tree6b31e444675aab885a8203ed7e57ba0e00aa2254
parente192d34edc2b0788bb50e857169056330825e18c (diff)
downloadorg.eclipse.cdt-5fc7679c0501535b77f835e5fc2d79f9435065c5.tar.gz
org.eclipse.cdt-5fc7679c0501535b77f835e5fc2d79f9435065c5.tar.xz
org.eclipse.cdt-5fc7679c0501535b77f835e5fc2d79f9435065c5.zip
Fix for 218342: [patch] unable to clear breakpoints in ExternalTranslationUnit's from the editor (Patch by Warren Paul)
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java
index ef8d68768ef..1f325ae6440 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java
@@ -8,7 +8,7 @@
* Contributors:
* QNX Software Systems - Initial API and implementation
* Freescale Semiconductor - Address watchpoints, https://bugs.eclipse.org/bugs/show_bug.cgi?id=118299
- * Warren Paul (Nokia) - Bug 217485
+ * Warren Paul (Nokia) - Bug 217485, Bug 218342
*******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.actions;
@@ -32,6 +32,7 @@ import org.eclipse.cdt.debug.internal.ui.IInternalCDebugUIConstants;
import org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyEditorInput;
import org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyView;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
+import org.eclipse.cdt.internal.ui.util.ExternalEditorInput;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
@@ -291,6 +292,8 @@ public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget {
IEditorInput editorInput = ((IEditorPart)part).getEditorInput();
if ( editorInput instanceof IFileEditorInput ) {
return ((IFileEditorInput)editorInput).getFile();
+ } else if (editorInput instanceof ExternalEditorInput) {
+ return ((ExternalEditorInput)editorInput).getMarkerResource();
}
ILocationProvider provider = (ILocationProvider)editorInput.getAdapter( ILocationProvider.class );
if ( provider != null ) {

Back to the top