mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug 49587: Unable to set breakpoints in the editors that extend CEditor.
This commit is contained in:
parent
d02df84a93
commit
e63680bf70
2 changed files with 4 additions and 23 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue