java.lang .Object edu.rice.cs.drjava.model.repl .InteractionsModel edu.rice.cs.drjava.model.repl .RMIInteractionsModel edu.rice.cs.drjava.model.repl .DefaultInteractionsModel DefaultInteractionsModel public class DefaultInteractionsModel extends RMIInteractionsModel (Code) Interactions model which can notify GlobalModelListeners on events.
TODO: remove invokeLater wrappers here and enforce the policy that all of the listener methods must use them
version: $Id: DefaultInteractionsModel.java 4255 2007-08-28 19:17:37Z mgricken $
_model final protected DefaultGlobalModel _model (Code) Model that contains the interpreter to use. (Can this be eliminated?)
DefaultInteractionsModel public DefaultInteractionsModel(DefaultGlobalModel model, MainJVM jvm, ConsoleDocumentInterface adapter, File wd)(Code) Creates a new InteractionsModel.
Parameters: model - DefaultGlobalModel to do the interpretationParameters: control - RMI interface to the Interpreter JVMParameters: adapter - InteractionsDJDocument to use for the document
_interpreterResetFailed protected void _interpreterResetFailed(Throwable t)(Code) Any extra action to perform (beyond notifying listeners) when the interpreter fails to reset.
Parameters: t - The Throwable thrown by System.exit
_notifyInteractionEnded protected void _notifyInteractionEnded()(Code) Notifies listeners that an interaction has ended.
_notifyInteractionIncomplete protected void _notifyInteractionIncomplete()(Code) Notifies the view that the current interaction is incomplete.
_notifyInteractionStarted protected void _notifyInteractionStarted()(Code) Notifies listeners that an interaction has started.
_notifyInterpreterChanged protected void _notifyInterpreterChanged(boolean inProgress)(Code) Notifies listeners that the interpreter has changed.
Parameters: inProgress - Whether the new interpreter is currently in progress.
_notifyInterpreterExited protected void _notifyInterpreterExited(int status)(Code) Notifies listeners that the interpreter has exited unexpectedly.
Parameters: status - Status code of the dead process
_notifyInterpreterReady public void _notifyInterpreterReady(File wd)(Code) Notifies listeners that the interpreter is ready.
_notifyInterpreterResetFailed protected void _notifyInterpreterResetFailed(Throwable t)(Code) Notifies listeners that the interpreter reset failed.
Parameters: t - Throwable causing the failure
_notifyInterpreterResetting protected void _notifyInterpreterResetting()(Code) Notifies listeners that the interpreter is resetting.
_notifySlaveJVMUsed protected void _notifySlaveJVMUsed(File wd)(Code) Notifies listeners that slave JVM has been used.
_notifySlaveJVMUsed protected void _notifySlaveJVMUsed()(Code) Notifies listeners that the slave JVM has been used.
_notifySyntaxErrorOccurred protected void _notifySyntaxErrorOccurred(int offset, int length)(Code) Notifies listeners that an error was present in the interaction.
getConsoleInput public String getConsoleInput()(Code) Returns a line of text entered by the user at the equivalent of System.in.
interpreterReady public void interpreterReady(File wd)(Code) Called when the Java interpreter is ready to use. This method body adds actions that involve the global model.
replSystemErrPrint public void replSystemErrPrint(String s)(Code) Called when the repl prints to System.err.
Parameters: s - String to print
replSystemOutPrint public void replSystemOutPrint(String s)(Code) Called when the repl prints to System.out.
Parameters: s - String to print
Fields inherited from edu.rice.cs.drjava.model.repl.RMIInteractionsModel final protected MainJVM _jvm(Code) (Java Doc)
Methods inherited from edu.rice.cs.drjava.model.repl.InteractionsModel protected void _createNewDebugPort() throws IOException (Code) (Java Doc) protected static String _deleteSemiColon(String s)(Code) (Java Doc) protected ArrayList <String > _getHistoryText(FileOpenSelector selector) throws IOException , OperationCanceledException (Code) (Java Doc) public void _interactionIsOver()(Code) (Java Doc) abstract protected void _interpret(String toEval)(Code) (Java Doc) abstract protected void _interpreterResetFailed(Throwable t)(Code) (Java Doc) abstract protected void _notifyInteractionEnded()(Code) (Java Doc) abstract protected void _notifyInteractionIncomplete()(Code) (Java Doc) abstract protected void _notifyInteractionStarted()(Code) (Java Doc) abstract protected void _notifyInterpreterExited(int status)(Code) (Java Doc) abstract public void _notifyInterpreterReady(File wd)(Code) (Java Doc) abstract protected void _notifyInterpreterResetFailed(Throwable t)(Code) (Java Doc) abstract protected void _notifyInterpreterResetting()(Code) (Java Doc) abstract protected void _notifySlaveJVMUsed()(Code) (Java Doc) abstract protected void _notifySyntaxErrorOccurred(int offset, int length)(Code) (Java Doc) protected ArrayList <String > _removeSeparators(String text)(Code) (Java Doc) abstract protected void _resetInterpreter(File wd)(Code) (Java Doc) protected static String _testClassCall(String s)(Code) (Java Doc) public void _writerDelay()(Code) (Java Doc) abstract public void addBuildDirectoryClassPath(File f)(Code) (Java Doc) abstract public void addExternalFilesClassPath(File f)(Code) (Java Doc) abstract public void addExtraClassPath(File f)(Code) (Java Doc) public void addListener(InteractionsListener listener)(Code) (Java Doc) public void addNewLine()(Code) (Java Doc) abstract public void addProjectClassPath(File f)(Code) (Java Doc) abstract public void addProjectFilesClassPath(File f)(Code) (Java Doc) public void append(String s, String styleName)(Code) (Java Doc) public void changeInputListener(InputListener oldListener, InputListener newListener)(Code) (Java Doc) public String getBanner()(Code) (Java Doc) public static String getBanner(File wd)(Code) (Java Doc) abstract public ConsoleDocument getConsoleDocument()(Code) (Java Doc) public String getConsoleInput()(Code) (Java Doc) public int getDebugPort() throws IOException (Code) (Java Doc) public InteractionsDocument getDocument()(Code) (Java Doc) public Pair <String , String > getLastError()(Code) (Java Doc) public Pair <String , String > getSecondToLastError()(Code) (Java Doc) public String getStartUpBanner()(Code) (Java Doc) abstract public String getVariableClassName(String var)(Code) (Java Doc) abstract public String getVariableToString(String var)(Code) (Java Doc) public File getWorkingDirectory()(Code) (Java Doc) public void interactionContinues()(Code) (Java Doc) final public void interpret(String toEval)(Code) (Java Doc) public void interpretCurrentInteraction()(Code) (Java Doc) public void interpreterReady(File wd)(Code) (Java Doc) public void interpreterResetFailed(Throwable t)(Code) (Java Doc) public void interpreterResetting()(Code) (Java Doc) public void loadHistory(FileOpenSelector selector) throws IOException (Code) (Java Doc) public InteractionsScriptModel loadHistoryAsScript(FileOpenSelector selector) throws IOException , OperationCanceledException (Code) (Java Doc) public void removeAllInteractionListeners()(Code) (Java Doc) public String removeLastFromHistory()(Code) (Java Doc) public void removeListener(InteractionsListener listener)(Code) (Java Doc) public void replCalledSystemExit(int status)(Code) (Java Doc) public void replReturnedResult(String result, String style)(Code) (Java Doc) public void replReturnedSyntaxError(String errorMessage, String interaction, int startRow, int startCol, int endRow, int endCol)(Code) (Java Doc) public void replReturnedVoid()(Code) (Java Doc) public void replSystemErrPrint(String s)(Code) (Java Doc) public void replSystemOutPrint(String s)(Code) (Java Doc) public void replThrewException(String exceptionClass, String message, String stackTrace, String shortMessage)(Code) (Java Doc) final public void resetInterpreter(File wd)(Code) (Java Doc) public void resetLastErrors()(Code) (Java Doc) public void setDebugPort(int port)(Code) (Java Doc) public void setInputListener(InputListener listener)(Code) (Java Doc) public void setWaitingForFirstInterpreter(boolean waiting)(Code) (Java Doc) public void slaveJVMUsed()(Code) (Java Doc)