diff options
author | Mikhail Khodjaiants | 2004-01-06 19:39:07 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2004-01-06 19:39:07 +0000 |
commit | db074337e7b82f82241300d24b98a2e1e2bb818a (patch) | |
tree | 58b96aef1d16d18d97eccd803ca123357cb60b16 | |
parent | f08bee51653e0a7d675e9918e778da5e8d76ca70 (diff) | |
download | org.eclipse.cdt-db074337e7b82f82241300d24b98a2e1e2bb818a.tar.gz org.eclipse.cdt-db074337e7b82f82241300d24b98a2e1e2bb818a.tar.xz org.eclipse.cdt-db074337e7b82f82241300d24b98a2e1e2bb818a.zip |
Fix for bug 49587: Unable to set breakpoints in the editors that extend CEditor.
-rw-r--r-- | debug/org.eclipse.cdt.debug.ui/ChangeLog | 4 | ||||
-rw-r--r-- | debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/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 b57c1919df7..d0891d8938a 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) */ |