1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

Implementation of Registers view.

This commit is contained in:
Mikhail Khodjaiants 2002-09-16 21:55:24 +00:00
parent 185cb818c1
commit 397525c637

View file

@ -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.ICDebugUIConstants;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.debug.ui.IDebugModelPresentation;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.action.IAction;
@ -205,6 +206,29 @@ public class RegistersView extends AbstractDebugEventHandlerView
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 );
}
/**