|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.subsystems.shells.core.model.RemoteCommandShell
public abstract class RemoteCommandShell
Field Summary | |
---|---|
protected ArrayList |
_cmdHistory
|
protected IRemoteCmdSubSystem |
_cmdSubSystem
|
protected IRemoteFile |
_cwd
|
protected IRemoteFileSubSystem |
_fileSubSystem
|
protected String |
_id
|
protected String |
_name
|
protected ArrayList |
_output
|
protected IProject |
_project
|
protected String |
_type
|
Constructor Summary | |
---|---|
RemoteCommandShell(IRemoteCmdSubSystem 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()
|
abstract ICandidateCommand[] |
getCandidateCommands()
Override to provide a list of possible commands |
IRemoteCmdSubSystem |
getCommandSubSystem()
Return the command subsystem associated with this command |
Object |
getContext()
Get the current working directory for this command |
String |
getContextString()
Returns the context of this Shell as a String for persistence. |
IRemoteFileSubSystem |
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. |
abstract 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 |
abstract 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 |
---|
protected String _id
protected String _name
protected String _type
protected IRemoteFile _cwd
protected ArrayList _output
protected IRemoteFileSubSystem _fileSubSystem
protected IRemoteCmdSubSystem _cmdSubSystem
protected ArrayList _cmdHistory
protected IProject _project
Constructor Detail |
---|
public RemoteCommandShell(IRemoteCmdSubSystem 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 IRemoteFileSubSystem getFileSubSystem()
IRemoteCommandShell
getFileSubSystem
in interface IRemoteCommandShell
public IRemoteCmdSubSystem getCommandSubSystem()
IRemoteCommandShell
getCommandSubSystem
in interface IRemoteCommandShell
public Object[] getRoots()
public abstract String getTitle()
public abstract boolean isActive()
IRemoteCommandShell
isActive
in interface IRemoteCommandShell
public void updateHistory(String cmd)
updateHistory
in interface IRemoteCommandShell
public String[] getHistory()
IRemoteCommandShell
getHistory
in interface IRemoteCommandShell
public Object getContext()
getContext
in interface IRemoteCommandShell
public String getContextString()
getContextString
in interface IRemoteCommandShell
null
.public IRemoteFile getWorkingDirectory()
public void setWorkingDirectory(IRemoteFile file)
file
- the working directory.protected boolean isWindows()
public abstract ICandidateCommand[] getCandidateCommands()
getCandidateCommands
in interface IRemoteCommandShell
public void associateProject(IProject project)
associateProject
in interface IRemoteCommandShell
public IProject getAssociatedProject()
getAssociatedProject
in interface IRemoteCommandShell
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |