|
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.subsystems.impl.RemoteCommandShellImpl
Field Summary | |
---|---|
protected ArrayList |
_cmdHistory
|
protected RemoteCmdSubSystem |
_cmdSubSystem
|
protected IRemoteFile |
_cwd
|
protected RemoteFileSubSystem |
_fileSubSystem
|
protected String |
_id
|
protected String |
_name
|
protected ArrayList |
_output
|
protected IProject |
_project
|
protected String |
_type
|
static String |
Copyright
|
Constructor Summary | |
---|---|
RemoteCommandShellImpl(RemoteCmdSubSystem cmdSubSystem)
|
Method Summary | |
---|---|
void |
addOutput(Object output)
Add an output object to the list of output for this command |
void |
associateProject(IProject project)
|
Object |
getAdapter(Class adapterType)
|
IProject |
getAssociatedProject()
|
ICandidateCommand[] |
getCandidateCommands()
Override to provide a list of possible commands |
RemoteCmdSubSystem |
getCommandSubSystem()
Return the command subsystem associated with this command |
Object |
getContext()
Get the current working directory for this command |
RemoteFileSubSystem |
getFileSubSystem()
Return the file subsystem associated with this command |
String[] |
getHistory()
Return the list of commands passed into this command |
String |
getId()
Gets the ID of the command shell |
int |
getIndexOf(Object output)
Get the position of this output object in the command container |
String |
getName()
Gets the name of the command shell or command that is being run. |
Object |
getOutputAt(int index)
Get the output object the specified index |
Object[] |
getRoots()
|
int |
getSize()
Return the number of output objects for this command. |
String |
getTitle()
|
String |
getType()
Gets the type of the command shell or command that is being run. |
IRemoteFile |
getWorkingDirectory()
Get the current working directory for this command |
boolean |
isActive()
Indicate whether the corresponding command is running or not |
protected boolean |
isWindows()
|
Object[] |
listOutput()
Get the list of output objects for this command. |
void |
removeOutput()
Remove output from the list of output for this command |
void |
removeOutput(Object output)
Remove output from the list of output for this command |
void |
setName(String name)
|
void |
setType(String type)
|
void |
setWorkingDirectory(IRemoteFile file)
Set the current working directory for this command |
void |
updateHistory(String cmd)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
protected String _id
protected String _name
protected String _type
protected IRemoteFile _cwd
protected ArrayList _output
protected RemoteFileSubSystem _fileSubSystem
protected RemoteCmdSubSystem _cmdSubSystem
protected ArrayList _cmdHistory
protected IProject _project
Constructor Detail |
public RemoteCommandShellImpl(RemoteCmdSubSystem cmdSubSystem)
Method Detail |
public void setName(String name)
public String getName()
IRemoteCommandShell
getName
in interface IRemoteCommandShell
public String getId()
IRemoteCommandShell
getId
in interface IRemoteCommandShell
public void setType(String type)
public String getType()
IRemoteCommandShell
getType
in interface IRemoteCommandShell
public Object getAdapter(Class adapterType)
getAdapter
in interface IAdaptable
public Object[] listOutput()
IRemoteCommandShell
listOutput
in interface IRemoteCommandShell
public int getIndexOf(Object output)
IRemoteCommandShell
getIndexOf
in interface IRemoteCommandShell
public Object getOutputAt(int index)
IRemoteCommandShell
getOutputAt
in interface IRemoteCommandShell
public int getSize()
IRemoteCommandShell
getSize
in interface IRemoteCommandShell
public void addOutput(Object output)
IRemoteCommandShell
addOutput
in interface IRemoteCommandShell
output
- the output object to addpublic void removeOutput()
IRemoteCommandShell
removeOutput
in interface IRemoteCommandShell
public void removeOutput(Object output)
IRemoteCommandShell
removeOutput
in interface IRemoteCommandShell
public RemoteFileSubSystem getFileSubSystem()
IRemoteCommandShell
getFileSubSystem
in interface IRemoteCommandShell
public RemoteCmdSubSystem getCommandSubSystem()
IRemoteCommandShell
getCommandSubSystem
in interface IRemoteCommandShell
public Object[] getRoots()
public String getTitle()
public boolean isActive()
IRemoteCommandShell
isActive
in interface IRemoteCommandShell
public void updateHistory(String cmd)
public String[] getHistory()
IRemoteCommandShell
getHistory
in interface IRemoteCommandShell
public Object getContext()
getContext
in interface IRemoteCommandShell
public IRemoteFile getWorkingDirectory()
public void setWorkingDirectory(IRemoteFile file)
file
- protected boolean isWindows()
public ICandidateCommand[] getCandidateCommands()
getCandidateCommands
in interface IRemoteCommandShell
public void associateProject(IProject project)
associateProject
in interface IRemoteCommandShell
public IProject getAssociatedProject()
getAssociatedProject
in interface IRemoteCommandShell
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |