From e63680bf70cd076a8f5c1a83d0fe1ca8f5466f49 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Tue, 6 Jan 2004 20:45:35 +0000 Subject: [PATCH] Fix for bug 49587: Unable to set breakpoints in the editors that extend CEditor. --- debug/org.eclipse.cdt.debug.ui/ChangeLog | 4 ++++ .../ManageBreakpointRulerActionDelegate.java | 23 ------------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 6513cbe866d..72fbe2fe759 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,7 @@ +2004-01-06 Mikhail Khodjaiants + Fix for bug 49587: Unable to set breakpoints in the editors that extend CEditor. + * ManageBreakpointRulerActionDelegate.java + 2003-12-05 Mikhail Khodjaiants 'performApply' of 'SourceLookupBlock' should check if the project in configuration is the same as project saved in the block. diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerActionDelegate.java index 189d6c54749..e9f02a1327b 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerActionDelegate.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ManageBreakpointRulerActionDelegate.java @@ -6,12 +6,8 @@ package org.eclipse.cdt.debug.internal.ui.actions; -import org.eclipse.cdt.debug.internal.ui.editors.CDebugEditor; -import org.eclipse.cdt.debug.internal.ui.editors.DisassemblyEditor; -import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.jface.action.IAction; import org.eclipse.jface.text.source.IVerticalRulerInfo; -import org.eclipse.ui.IEditorPart; import org.eclipse.ui.texteditor.AbstractRulerActionDelegate; import org.eclipse.ui.texteditor.ITextEditor; @@ -23,25 +19,6 @@ import org.eclipse.ui.texteditor.ITextEditor; */ public class ManageBreakpointRulerActionDelegate extends AbstractRulerActionDelegate { - static final private String ASM_EDITOR_ID = "org.eclipse.cdt.ui.editor.asm.AsmEditor"; //$NON-NLS-1$ - - /** - * @see IEditorActionDelegate#setActiveEditor(IAction, IEditorPart) - */ - public void setActiveEditor( IAction callerAction, IEditorPart targetEditor ) - { - if ( targetEditor != null ) - { - String id = targetEditor.getSite().getId(); - if ( !id.equals( CDebugEditor.EDITOR_ID ) && - !id.equals( CUIPlugin.EDITOR_ID ) && - !id.equals( ASM_EDITOR_ID ) && - !id.equals( DisassemblyEditor.DISASSEMBLY_EDITOR_ID ) ) - targetEditor = null; - } - super.setActiveEditor( callerAction, targetEditor ); - } - /* (non-Javadoc) * @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(ITextEditor, IVerticalRulerInfo) */