edu.rice.cs.drjava.model.repl
Class DummyInteractionsListener

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.DummyInteractionsListener
All Implemented Interfaces:
InteractionsListener
Direct Known Subclasses:
DummyGlobalModelListener

public class DummyInteractionsListener
extends java.lang.Object
implements InteractionsListener

A dummy InteractionsListener that does nothing.

Version:
$Id: DummyInteractionsListener.java 5175 2010-01-20 08:46:32Z mgricken $

Constructor Summary
DummyInteractionsListener()
           
 
Method Summary
 void interactionEnded()
          Called when an interaction has finished running.
 void interactionErrorOccurred(int offset, int length)
          Called when the interactions window generates a syntax error.
 void interactionIncomplete()
          Called when enter was typed in the interactions pane but the interaction was incomplete.
 void interactionStarted()
          Called after an interaction is started by the GlobalModel.
 void interpreterChanged(boolean inProgress)
          Called when the active interpreter is changed.
 void interpreterExited(int status)
          Called when the interactions JVM was closed by System.exit or by being aborted.
 void interpreterReady(java.io.File wd)
          Called when the interactions window is reset.
 void interpreterResetFailed(java.lang.Throwable t)
          Called if the interpreter reset failed.
 void interpreterResetting()
          Called when the interactionsJVM has begun resetting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyInteractionsListener

public DummyInteractionsListener()
Method Detail

interactionStarted

public void interactionStarted()
Called after an interaction is started by the GlobalModel.

Specified by:
interactionStarted in interface InteractionsListener

interactionEnded

public void interactionEnded()
Called when an interaction has finished running.

Specified by:
interactionEnded in interface InteractionsListener

interactionErrorOccurred

public void interactionErrorOccurred(int offset,
                                     int length)
Called when the interactions window generates a syntax error.

Specified by:
interactionErrorOccurred in interface InteractionsListener
Parameters:
offset - the error's offset into the InteractionsDocument
length - the length of the error

interpreterResetting

public void interpreterResetting()
Called when the interactionsJVM has begun resetting.

Specified by:
interpreterResetting in interface InteractionsListener

interpreterReady

public void interpreterReady(java.io.File wd)
Called when the interactions window is reset.

Specified by:
interpreterReady in interface InteractionsListener

interpreterExited

public void interpreterExited(int status)
Called when the interactions JVM was closed by System.exit or by being aborted. Immediately after this the interactions will be reset.

Specified by:
interpreterExited in interface InteractionsListener
Parameters:
status - the exit code

interpreterResetFailed

public void interpreterResetFailed(java.lang.Throwable t)
Called if the interpreter reset failed. (Subclasses must maintain listeners.)

Specified by:
interpreterResetFailed in interface InteractionsListener
Parameters:
t - Throwable explaining why the reset failed.

interpreterChanged

public void interpreterChanged(boolean inProgress)
Called when the active interpreter is changed.

Specified by:
interpreterChanged in interface InteractionsListener
Parameters:
inProgress - Whether the new interpreter is currently processing an interaction (i.e. whether an interactionEnded event will be fired)

interactionIncomplete

public void interactionIncomplete()
Called when enter was typed in the interactions pane but the interaction was incomplete.

Specified by:
interactionIncomplete in interface InteractionsListener