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

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

 class DebugPanel.DebugPanelListener
extends Object
implements DebugListener

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


Constructor Summary
DebugPanel.DebugPanelListener()
           
 
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 thread)
          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 r)
          Called when a region is added in a document.
 void regionChanged(Breakpoint r)
          Called when a region is changed.
 void regionRemoved(Breakpoint r)
          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

DebugPanel.DebugPanelListener

DebugPanel.DebugPanelListener()
Method Detail

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

threadStarted

public void threadStarted()
Called when a thread starts. Only runs in event thread.

Specified by:
threadStarted in interface DebugListener

currThreadDied

public void currThreadDied()
Called when the current thread dies. Only runs in event thread.

Specified by:
currThreadDied in interface DebugListener

nonCurrThreadDied

public void nonCurrThreadDied()
Called when any thread other than the current thread dies. Only runs in event thread.

Specified by:
nonCurrThreadDied in interface DebugListener

currThreadSet

public void currThreadSet(DebugThreadData thread)
Called when the current (selected) thread is set in the debugger.

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

threadLocationUpdated

public void threadLocationUpdated(OpenDefinitionsDocument doc,
                                  int lineNumber,
                                  boolean shouldHighlight)
Description copied from interface: DebugListener
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.

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

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

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

stepRequested

public void stepRequested()
Description copied from interface: DebugListener
Called when a step is requested on the current thread. Must be executed in event thread.

Specified by:
stepRequested in interface DebugListener

regionAdded

public void regionAdded(Breakpoint r)
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:
r - the region

regionChanged

public void regionChanged(Breakpoint r)
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:
r - the region

regionRemoved

public void regionRemoved(Breakpoint r)
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:
r - the region