Class dstc.kalimantan.debug.ThreadBrowser
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dstc.kalimantan.debug.ThreadBrowser

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----dstc.kalimantan.debug.ThreadBrowser

public class ThreadBrowser
extends Frame
implements PollCallback
A graphical thread browser

Constructor Index

 o ThreadBrowser(Debugger, RemoteThread)
Constructs a new ThreadBrowser on a given thread

Method Index

 o action(Event, Object)
Handles button presses
 o getSelectedStackFrame()
Returns the selected stack frame
 o getSource(RemoteStackFrame)
Returns the source file associated with the stack frame
 o getSource(RemoteClass)
Returns the source file associated with the given class
 o handleEvent(Event)
Handle UI events
 o hide()
Disconnects the browser from the polling mechanism when hidden
 o isAtBreakpoint()
 o isSuspended()
If the thread is suspended or at a breakpoint
 o on(Debugger, RemoteThread)
Returns a possibly new ThreadBrowser on a given thread
 o pollEvent()
Implements the PollCallback interface
 o refreshSource()
Updates the source code to be representative of the current stack frame
 o show()
Connects browser to the polling mechanism when visible
 o updateStackFrames(RemoteStackFrame)
Updates the list of stack frames to reflect a recent change

Constructors

 o ThreadBrowser
  public ThreadBrowser(Debugger debugger,
                       RemoteThread thread) throws Exception
Constructs a new ThreadBrowser on a given thread

Methods

 o on
  public static ThreadBrowser on(Debugger debugger,
                                 RemoteThread thread) throws Exception
Returns a possibly new ThreadBrowser on a given thread
 o getSource
  public static IndexedString getSource(RemoteStackFrame sFrame) throws Exception
Returns the source file associated with the stack frame
 o getSource
  public static IndexedString getSource(RemoteClass clazz) throws Exception
Returns the source file associated with the given class
 o getSelectedStackFrame
  public RemoteStackFrame getSelectedStackFrame()
Returns the selected stack frame
 o pollEvent
  public void pollEvent()
Implements the PollCallback interface
 o updateStackFrames
  public void updateStackFrames(RemoteStackFrame selected) throws Exception
Updates the list of stack frames to reflect a recent change
 o refreshSource
  public void refreshSource() throws Exception
Updates the source code to be representative of the current stack frame
 o show
  public void show()
Connects browser to the polling mechanism when visible
Overrides:
show in class Window
 o hide
  public void hide()
Disconnects the browser from the polling mechanism when hidden
Overrides:
hide in class Component
 o isSuspended
  public boolean isSuspended()
If the thread is suspended or at a breakpoint
 o isAtBreakpoint
  public boolean isAtBreakpoint()
 o handleEvent
  public boolean handleEvent(Event event)
Handle UI events
Overrides:
handleEvent in class Component
 o action
  public boolean action(Event event,
                        Object target)
Handles button presses
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index