edu.rice.cs.drjava.ui
Class DebugPanel.DebugPanelListener

java.lang.Object
  |
  +--edu.rice.cs.drjava.ui.DebugPanel.DebugPanelListener
All Implemented Interfaces:
DebugListener
Enclosing class:
DebugPanel

class DebugPanel.DebugPanelListener
extends Object
implements DebugListener

Listens to events from the debug manager to keep the panel updated.


Constructor Summary
(package private) DebugPanel.DebugPanelListener()
           
 
Method Summary
 void breakpointReached(Breakpoint bp)
          Called when a breakpoint is reached during execution.
 void breakpointRemoved(Breakpoint bp)
          Called when a breakpoint is removed from a document.
 void breakpointSet(Breakpoint bp)
          Called when a breakpoint is set in a document.
 void currThreadDied()
          Called when the current thread dies
 void currThreadResumed()
          Called when the current thread is resumed
 void currThreadSuspended()
          Called when the current thread is suspended
 void debuggerShutdown()
          Called when debugger mode has been disabled.
 void debuggerStarted()
          Called when debugger mode has been enabled.
 void stepRequested()
          Called when a step is requested on the current thread.
 void threadLocationUpdated(OpenDefinitionsDocument doc, int lineNumber)
          Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DebugPanel.DebugPanelListener

DebugPanel.DebugPanelListener()
Method Detail

debuggerStarted

public void debuggerStarted()
Called when debugger mode has been enabled.
Specified by:
debuggerStarted in interface DebugListener

debuggerShutdown

public void debuggerShutdown()
Called when debugger mode has been disabled.
Specified by:
debuggerShutdown in interface DebugListener

threadLocationUpdated

public void threadLocationUpdated(OpenDefinitionsDocument doc,
                                  int lineNumber)
Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
Specified by:
threadLocationUpdated in interface DebugListener
Parameters:
doc - Document to display
lineNumber - Line to display or highlight

breakpointSet

public void breakpointSet(Breakpoint bp)
Called when a breakpoint is set in a document. Adds the breakpoint to the tree of breakpoints.
Specified by:
breakpointSet in interface DebugListener
Parameters:
bp - the breakpoint

breakpointReached

public void breakpointReached(Breakpoint bp)
Called when a breakpoint is reached during execution.
Specified by:
breakpointReached in interface DebugListener
Parameters:
bp - the breakpoint

breakpointRemoved

public void breakpointRemoved(Breakpoint bp)
Called when a breakpoint is removed from a document. Removes the breakpoint from the tree of breakpoints.
Specified by:
breakpointRemoved in interface DebugListener
Parameters:
bp - the breakpoint

stepRequested

public void stepRequested()
Called when a step is requested on the current thread.
Specified by:
stepRequested in interface DebugListener

currThreadSuspended

public void currThreadSuspended()
Called when the current thread is suspended
Specified by:
currThreadSuspended in interface DebugListener

currThreadResumed

public void currThreadResumed()
Called when the current thread is resumed
Specified by:
currThreadResumed in interface DebugListener

currThreadDied

public void currThreadDied()
Called when the current thread dies
Specified by:
currThreadDied in interface DebugListener