console
Class ConsoleBeanShell
java.lang.Object
console.Shell
console.ConsoleBeanShell
public class ConsoleBeanShell
- extends Shell
Methods inherited from class console.Shell |
closeConsole, detach, endOfFile, execute, getCompletions, getName, getShell, getShellNames, openConsole, registerShell, toString, unregisterShell, waitUntilDone |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConsoleBeanShell
public ConsoleBeanShell()
printInfoMessage
public void printInfoMessage(Output output)
- Description copied from class:
Shell
- Prints a 'info' message to the specified console.
- Overrides:
printInfoMessage
in class Shell
- Parameters:
output
- The output
printPrompt
public void printPrompt(Console console,
Output output)
- Prints a prompt to the specified console.
- Overrides:
printPrompt
in class Shell
- Parameters:
output
- The outputconsole
- The console instance
execute
public void execute(Console console,
java.lang.String input,
Output output,
Output error,
java.lang.String command)
- Description copied from class:
Shell
- Executes a command. Override this abstract method in custom
derived classes.
- Specified by:
execute
in class Shell
- Parameters:
console
- The Console instance, to distinguish it from others when there are
multiple View or Console instances.input
- optional string to feed into the command's Standard inputoutput
- Standard output - the destination to send outputerror
- Standard error - the destionation to send error messagescommand
- The command
stop
public void stop(Console console)
- Description copied from class:
Shell
- Stops the currently executing command, if any. When the user clicks the "stop" button
on the console, this method is called.
- Overrides:
stop
in class Shell
- Parameters:
console
- the same Console instance that was passed to execute()
waitFor
public boolean waitFor(Console console)
- Description copied from class:
Shell
- Waits until any currently executing commands finish.
- Overrides:
waitFor
in class Shell
- Parameters:
console
- the same Console instance that was passed to execute()
- Returns:
- True if the most recent command exited successfully,
false otherwise