public class SystemShell extends Shell implements org.gjt.sp.util.TaskListener
Shell.CompletionInfo, Shell.ShellAction, Shell.SwitchAction, Shell.ToggleAction| Constructor and Description |
|---|
SystemShell() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeStopping() |
boolean |
chDir(Console console,
java.lang.String path)
A System Shell can override this method if it can respond to chDir messages
|
void |
closeConsole(Console console)
Called when a Console dockable is closed.
|
void |
detach(Console console)
Detaches the currently running process.
|
void |
done(org.gjt.sp.util.Task task) |
void |
endOfFile(Console console)
Sends an end of file.
|
void |
execute(Console console,
java.lang.String input,
Output output,
Output error,
java.lang.String command)
Executes a command.
|
void |
executeBuiltIn(Console console,
Output output,
Output error,
java.lang.String command,
java.util.Vector<java.lang.String> args) |
java.util.Hashtable<java.lang.String,java.lang.String> |
getAliases() |
Shell.CompletionInfo |
getCompletions(Console console,
java.lang.String command)
Returns possible completions for the specified command.
|
java.lang.String |
getVariableValue(org.gjt.sp.jedit.View view,
java.lang.String varName) |
boolean |
handlesVFS(java.lang.String vfsPath)
A System Shell can override this method and use
any criteria at all to decide
whether this is a path that is preferred by this shell.
|
void |
maximumUpdated(org.gjt.sp.util.Task task) |
void |
openConsole(Console console)
Called when a Console dockable first selects this shell.
|
void |
printInfoMessage(Output output)
Prints a 'info' message to the specified console.
|
void |
printPrompt(Console console,
Output output)
Prints a prompt to the specified console.
|
void |
running(org.gjt.sp.util.Task task) |
void |
statusUpdated(org.gjt.sp.util.Task task) |
void |
stop(Console console)
Stops the currently executing command, if any.
|
void |
valueUpdated(org.gjt.sp.util.Task task) |
boolean |
waitFor(Console console)
Waits for currently running Console processes to finish execution.
|
void |
waiting(org.gjt.sp.util.Task task) |
public void beforeStopping()
public void openConsole(Console console)
openConsole in class Shellpublic void closeConsole(Console console)
closeConsole in class Shellpublic void printInfoMessage(Output output)
ShellprintInfoMessage in class Shelloutput - The outputpublic void printPrompt(Console console, Output output)
printPrompt in class Shelloutput - The outputconsole - The console instancepublic void executeBuiltIn(Console console, Output output, Output error, java.lang.String command, java.util.Vector<java.lang.String> args)
public boolean handlesVFS(java.lang.String vfsPath)
ShellhandlesVFS in class ShellvfsPath - the path to test if this shell handlespublic boolean chDir(Console console, java.lang.String path)
Shellpublic void execute(Console console, java.lang.String input, Output output, Output error, java.lang.String command)
Shellexecute in class Shellconsole - 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 commandpublic void stop(Console console)
Shellpublic boolean waitFor(Console console)
public void endOfFile(Console console)
public void detach(Console console)
public Shell.CompletionInfo getCompletions(Console console, java.lang.String command)
getCompletions in class Shellconsole - The console instancecommand - The commandpublic java.lang.String getVariableValue(org.gjt.sp.jedit.View view,
java.lang.String varName)
public java.util.Hashtable<java.lang.String,java.lang.String> getAliases()
public void waiting(org.gjt.sp.util.Task task)
waiting in interface org.gjt.sp.util.TaskListenerpublic void running(org.gjt.sp.util.Task task)
running in interface org.gjt.sp.util.TaskListenerpublic void done(org.gjt.sp.util.Task task)
done in interface org.gjt.sp.util.TaskListenerpublic void maximumUpdated(org.gjt.sp.util.Task task)
maximumUpdated in interface org.gjt.sp.util.TaskListenerpublic void valueUpdated(org.gjt.sp.util.Task task)
valueUpdated in interface org.gjt.sp.util.TaskListenerpublic void statusUpdated(org.gjt.sp.util.Task task)
statusUpdated in interface org.gjt.sp.util.TaskListener