edu.rice.cs.drjava.model.debug
Class DebugTestCase.InterpretListener

java.lang.Object
  extended by edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
      extended by edu.rice.cs.drjava.model.debug.DebugTestCase.InterpretListener
All Implemented Interfaces:
CompilerListener, GlobalModelListener, JavadocListener, JUnitListener, InteractionsListener
Enclosing class:
DebugTestCase

protected class DebugTestCase.InterpretListener
extends GlobalModelTestCase.TestListener

TestListener that listens for an interpretation to end, and then notifies anyone waiting on it. (Necessary to prevent tests from overlapping.)


Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
_startupTrace, activeCompilerChangedCount, canAbandonCount, classFileErrorCount, closeCount, compileBeforeJavadocCount, compileBeforeJUnitCount, compileEndCount, compileStartCount, consoleResetCount, fileNotFoundCount, filePathContainsPoundCount, fileRevertedCount, hasClearedEventQueue, interactionEndCount, interactionErrorCount, interactionIncompleteCount, interactionStartCount, interpreterChangedCount, interpreterExitedCount, interpreterReadyCount, interpreterResetFailedCount, interpreterResettingCount, junitEndCount, junitStartCount, junitSuiteStartedCount, junitTestEndedCount, junitTestStartedCount, lastExitStatus, newCount, nonTestCaseCount, openCount, quitFileCount, runStartCount, saveBeforeCompileCount, saveBeforeJavadocCount, saveCount, shouldRevertFileCount, undoableEditCount
 
Constructor Summary
DebugTestCase.InterpretListener()
           
 
Method Summary
 void interactionEnded()
          Called when an interaction has ended.
 void interactionStarted()
          Called when an interaction has started.
 void interpreterChanged(boolean inProgress)
          Called when the active interpreter is changed.
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
activeCompilerChanged, activeDocumentChanged, activeDocumentRefreshed, allFilesClosed, assertAbandonCount, assertActiveCompilerChangedCount, assertClassFileErrorCount, assertCloseCount, assertCompileBeforeJavadocCount, assertCompileBeforeJUnitCount, assertCompileEndCount, assertCompileStartCount, assertConsoleResetCount, assertFileNotFoundCount, assertFileRevertedCount, assertInteractionEndCount, assertInteractionErrorCount, assertInteractionIncompleteCount, assertInteractionsErrorCount, assertInteractionStartCount, assertInterpreterChangedCount, assertInterpreterExitedCount, assertInterpreterReadyCount, assertInterpreterResetFailedCount, assertInterpreterResettingCount, assertJUnitEndCount, assertJUnitStartCount, assertJUnitSuiteStartedCount, assertJUnitTestEndedCount, assertJUnitTestStartedCount, assertNewCount, assertNonTestCaseCount, assertOpenCount, assertQuitFileCount, assertRunStartCount, assertSaveBeforeCompileCount, assertSaveBeforeJavadocCount, assertSaveCount, assertShouldRevertFileCount, assertUndoableEditCount, browserChanged, canAbandonFile, classFileError, compileAborted, compileBeforeJavadoc, compileBeforeJUnit, compileEnded, compileStarted, consoleReset, currentDirectoryChanged, documentNotFound, executeAsyncTask, fileClosed, fileOpened, filePathContainsPound, fileReverted, fileSaved, filesNotFound, filesReadOnly, focusOnDefinitionsPane, focusOnLastFocusOwner, handleAlreadyOpenDocument, interactionErrorOccurred, interactionIncomplete, interpreterExited, interpreterReady, interpreterResetFailed, interpreterResetting, javadocEnded, javadocStarted, junitClassesStarted, junitEnded, junitStarted, junitSuiteStarted, junitTestEnded, junitTestStarted, listenerFail, newFileCreated, nonTestCase, openProject, prepareForRun, projectBuildDirChanged, projectClosed, projectModified, projectRunnableChanged, projectWorkDirChanged, quitFile, resetCounts, saveBeforeCompile, saveBeforeJavadoc, saveUntitled, shouldRevertFile, undoableEditHappened, updateCurrentLocationInDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugTestCase.InterpretListener

public DebugTestCase.InterpretListener()
Method Detail

interactionStarted

public void interactionStarted()
Description copied from interface: InteractionsListener
Called when an interaction has started.

Specified by:
interactionStarted in interface InteractionsListener
Overrides:
interactionStarted in class GlobalModelTestCase.TestListener

interactionEnded

public void interactionEnded()
Description copied from interface: InteractionsListener
Called when an interaction has ended.

Specified by:
interactionEnded in interface InteractionsListener
Overrides:
interactionEnded in class GlobalModelTestCase.TestListener

interpreterChanged

public void interpreterChanged(boolean inProgress)
Description copied from interface: InteractionsListener
Called when the active interpreter is changed.

Specified by:
interpreterChanged in interface InteractionsListener
Overrides:
interpreterChanged in class GlobalModelTestCase.TestListener
Parameters:
inProgress - Whether the new interpreter is currently in processing an interaction (i.e., whether an interactionEnded event is pending.)