edu.rice.cs.drjava.ui
Class MainFrame.UIDebugListener

java.lang.Object
  extended by edu.rice.cs.drjava.ui.MainFrame.UIDebugListener
All Implemented Interfaces:
DebugListener, RegionManagerListener<Breakpoint>
Enclosing class:
MainFrame

private class MainFrame.UIDebugListener
extends Object
implements DebugListener

Listens to events from the debugger.


Constructor Summary
private MainFrame.UIDebugListener()
           
 
Method Summary
 void breakpointReached(Breakpoint bp)
          Called when a breakpoint is reached during execution.
 void currThreadDied()
          Called when the current thread dies.
 void currThreadResumed()
          Called when the current thread is resumed.
 void currThreadSet(DebugThreadData dtd)
          Called when the current (selected) thread is set in the debugger.
 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 nonCurrThreadDied()
          Called when any thread other than the current thread dies.
 void regionAdded(Breakpoint bp)
          Called when a region is added in a document.
 void regionChanged(Breakpoint bp)
          Called when a region is changed.
 void regionRemoved(Breakpoint bp)
          Called when a region is removed from a document.
 void stepRequested()
          Called when a step is requested on the current thread.
 void threadLocationUpdated(OpenDefinitionsDocument doc, int lineNumber, boolean shouldHighlight)
          Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
 void threadStarted()
          Called when a thread starts.
 void watchRemoved(DebugWatchData w)
          Called when a watch is removed.
 void watchSet(DebugWatchData w)
          Called when a watch is set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainFrame.UIDebugListener

private MainFrame.UIDebugListener()
Method Detail

debuggerStarted

public void debuggerStarted()
Description copied from interface: DebugListener
Called when debugger mode has been enabled. Must be executed in event thread.

Specified by:
debuggerStarted in interface DebugListener

debuggerShutdown

public void debuggerShutdown()
Description copied from interface: DebugListener
Called when debugger mode has been disabled. Must be executed in event thread.

Specified by:
debuggerShutdown in interface DebugListener

stepRequested

public void stepRequested()
Called when a step is requested on the current thread. Must be executed in event thread.

Specified by:
stepRequested in interface DebugListener

currThreadSuspended

public void currThreadSuspended()
Description copied from interface: DebugListener
Called when the current thread is suspended.

Specified by:
currThreadSuspended in interface DebugListener

currThreadResumed

public void currThreadResumed()
Description copied from interface: DebugListener
Called when the current thread is resumed. Must be executed in event thread.

Specified by:
currThreadResumed in interface DebugListener

threadLocationUpdated

public void threadLocationUpdated(OpenDefinitionsDocument doc,
                                  int lineNumber,
                                  boolean shouldHighlight)
Called when the given line is reached by the current thread in the debugger, to request that the line be displayed. Must be executed only in the event thread.

Specified by:
threadLocationUpdated in interface DebugListener
Parameters:
doc - Document to display
lineNumber - Line to display or highlight
shouldHighlight - true iff the line should be highlighted.

currThreadDied

public void currThreadDied()
Description copied from interface: DebugListener
Called when the current thread dies. Must be executed in event thread.

Specified by:
currThreadDied in interface DebugListener

currThreadSet

public void currThreadSet(DebugThreadData dtd)
Description copied from interface: DebugListener
Called when the current (selected) thread is set in the debugger.

Specified by:
currThreadSet in interface DebugListener
Parameters:
dtd - the thread that was set as current

regionAdded

public void regionAdded(Breakpoint bp)
Description copied from interface: RegionManagerListener
Called when a region is added in a document. Must be executed in event thread.

Specified by:
regionAdded in interface RegionManagerListener<Breakpoint>
Parameters:
bp - the region

breakpointReached

public void breakpointReached(Breakpoint bp)
Description copied from interface: DebugListener
Called when a breakpoint is reached during execution.

Specified by:
breakpointReached in interface DebugListener
Parameters:
bp - the breakpoint

regionChanged

public void regionChanged(Breakpoint bp)
Description copied from interface: RegionManagerListener
Called when a region is changed. Must be executed in event thread.

Specified by:
regionChanged in interface RegionManagerListener<Breakpoint>
Parameters:
bp - the region

regionRemoved

public void regionRemoved(Breakpoint bp)
Description copied from interface: RegionManagerListener
Called when a region is removed from a document. Must be executed in event thread.

Specified by:
regionRemoved in interface RegionManagerListener<Breakpoint>
Parameters:
bp - the region

watchSet

public void watchSet(DebugWatchData w)
Description copied from interface: DebugListener
Called when a watch is set. Must be executed in event thread.

Specified by:
watchSet in interface DebugListener
Parameters:
w - the watch

watchRemoved

public void watchRemoved(DebugWatchData w)
Description copied from interface: DebugListener
Called when a watch is removed. Must be executed in event thread.

Specified by:
watchRemoved in interface DebugListener
Parameters:
w - the watch

threadStarted

public void threadStarted()
Description copied from interface: DebugListener
Called when a thread starts. Must be executed in event thread.

Specified by:
threadStarted in interface DebugListener

nonCurrThreadDied

public void nonCurrThreadDied()
Description copied from interface: DebugListener
Called when any thread other than the current thread dies. Must be executed in event thread.

Specified by:
nonCurrThreadDied in interface DebugListener