edu.rice.cs.drjava.model.debug
Interface DebugListener

All Known Implementing Classes:
DebugPanel.DebugPanelListener, MainFrame.UIDebugListener, DebugTest.DebugTestListener

public interface DebugListener

Any class which wants to listen to events fired by the DebugManager should implement this interface and use DebugManager's addDebugListener() method.

Version:
$Id: DebugListener.java,v 1.6 2002/07/30 14:23:36 csreis Exp $

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.
 

Method Detail

debuggerStarted

public void debuggerStarted()
Called when debugger mode has been enabled.

debuggerShutdown

public void debuggerShutdown()
Called when debugger mode has been disabled.

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.
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.
Parameters:
bp - the breakpoint

breakpointReached

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

breakpointRemoved

public void breakpointRemoved(Breakpoint bp)
Called when a breakpoint is removed from a document.
Parameters:
bp - the breakpoint

stepRequested

public void stepRequested()
Called when a step is requested on the current thread.

currThreadSuspended

public void currThreadSuspended()
Called when the current thread is suspended

currThreadResumed

public void currThreadResumed()
Called when the current thread is resumed

currThreadDied

public void currThreadDied()
Called when the current thread dies