|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.commands.RemoteCommandShellOperation
Nested Class Summary | |
---|---|
protected class |
RemoteCommandShellOperation.CommandAlias
|
Field Summary | |
---|---|
protected RemoteCmdSubSystem |
_cmdSubSystem
|
protected IRemoteFile |
_pwd
|
protected IRemoteCommandShell |
_remoteCmdShell
|
protected Shell |
_shell
|
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeListener |
---|
copyright |
Constructor Summary | |
---|---|
RemoteCommandShellOperation(Shell shell,
RemoteCmdSubSystem cmdSubSystem,
IRemoteFile pwd)
|
Method Summary | |
---|---|
void |
associateProject(IProject project)
|
protected boolean |
commandMatches(String outputEcho,
RemoteCommandShellOperation.CommandAlias firstCommand)
|
void |
finish()
|
String |
getCurrentCommand()
|
IRemoteCommandShell |
getRemoteCommandShell()
|
Shell |
getShell()
This is the method in your class that will be called to return the shell for your viewer |
abstract void |
handleCommandFinished(String cmd)
|
abstract void |
handleOutputChanged(String command,
Object output)
|
void |
handleShellFinished()
|
boolean |
isActive()
Indicates whether the command shell is active or not |
void |
outputUpdated()
Called whenever output is retrieved from the host |
IRemoteCommandShell |
run()
|
void |
sendCommand(String cmd)
Send a command to the running command shell. |
void |
sendInput(String input)
Send input to the running command shell. |
void |
setWorkingDirectory(IRemoteFile pwd)
|
void |
systemResourceChanged(ISystemResourceChangeEvent event)
This is the method in your class that will be called when a system resource changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected RemoteCmdSubSystem _cmdSubSystem
protected IRemoteFile _pwd
protected Shell _shell
protected IRemoteCommandShell _remoteCmdShell
Constructor Detail |
public RemoteCommandShellOperation(Shell shell, RemoteCmdSubSystem cmdSubSystem, IRemoteFile pwd)
Method Detail |
public void setWorkingDirectory(IRemoteFile pwd)
public IRemoteCommandShell run()
public IRemoteCommandShell getRemoteCommandShell()
public void associateProject(IProject project)
public void finish()
public String getCurrentCommand()
public void sendCommand(String cmd)
cmd
- the command to run in the shellpublic void sendInput(String input)
input
- the input to send to the running programpublic Shell getShell()
ISystemResourceChangeListener
getShell
in interface ISystemResourceChangeListener
public boolean isActive()
public void systemResourceChanged(ISystemResourceChangeEvent event)
ISystemResourceChangeListener
systemResourceChanged
in interface ISystemResourceChangeListener
ISystemResourceChangeEvent
public void outputUpdated()
protected boolean commandMatches(String outputEcho, RemoteCommandShellOperation.CommandAlias firstCommand)
public void handleShellFinished()
public abstract void handleCommandFinished(String cmd)
public abstract void handleOutputChanged(String command, Object output)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |