mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
Implementation of Registers view.
This commit is contained in:
parent
185cb818c1
commit
397525c637
1 changed files with 24 additions and 0 deletions
|
@ -17,6 +17,7 @@ import org.eclipse.cdt.debug.internal.ui.views.IDebugExceptionHandler;
|
||||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||||
import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
|
import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
|
||||||
import org.eclipse.debug.core.DebugException;
|
import org.eclipse.debug.core.DebugException;
|
||||||
|
import org.eclipse.debug.core.model.IStackFrame;
|
||||||
import org.eclipse.debug.ui.IDebugModelPresentation;
|
import org.eclipse.debug.ui.IDebugModelPresentation;
|
||||||
import org.eclipse.debug.ui.IDebugUIConstants;
|
import org.eclipse.debug.ui.IDebugUIConstants;
|
||||||
import org.eclipse.jface.action.IAction;
|
import org.eclipse.jface.action.IAction;
|
||||||
|
@ -205,6 +206,29 @@ public class RegistersView extends AbstractDebugEventHandlerView
|
||||||
|
|
||||||
protected void setViewerInput( IStructuredSelection ssel )
|
protected void setViewerInput( IStructuredSelection ssel )
|
||||||
{
|
{
|
||||||
|
IStackFrame frame = null;
|
||||||
|
if ( ssel.size() == 1 )
|
||||||
|
{
|
||||||
|
Object input = ssel.getFirstElement();
|
||||||
|
if ( input instanceof IStackFrame )
|
||||||
|
{
|
||||||
|
frame = (IStackFrame)input;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Object current = getViewer().getInput();
|
||||||
|
if ( current == null && frame == null )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( current != null && current.equals( frame ) )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
showViewer();
|
||||||
|
getViewer().setInput( frame );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue