|
RSE Release 3.0 |
|||||||||
| 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 IRemoteCommandShellpublic String getId()
IRemoteCommandShell
getId in interface IRemoteCommandShellpublic void setType(String type)
public String getType()
IRemoteCommandShell
getType in interface IRemoteCommandShellpublic Object getAdapter(Class adapterType)
getAdapter in interface IAdaptablepublic Object[] listOutput()
IRemoteCommandShell
listOutput in interface IRemoteCommandShellpublic int getIndexOf(Object output)
IRemoteCommandShell
getIndexOf in interface IRemoteCommandShellpublic Object getOutputAt(int index)
IRemoteCommandShell
getOutputAt in interface IRemoteCommandShellpublic int getSize()
IRemoteCommandShell
getSize in interface IRemoteCommandShellpublic void addOutput(Object output)
IRemoteCommandShell
addOutput in interface IRemoteCommandShelloutput - the output object to addpublic void removeOutput()
IRemoteCommandShell
removeOutput in interface IRemoteCommandShellpublic void removeOutput(Object output)
IRemoteCommandShell
removeOutput in interface IRemoteCommandShellpublic IRemoteFileSubSystem getFileSubSystem()
IRemoteCommandShell
getFileSubSystem in interface IRemoteCommandShellpublic IRemoteCmdSubSystem getCommandSubSystem()
IRemoteCommandShell
getCommandSubSystem in interface IRemoteCommandShellpublic Object[] getRoots()
public abstract String getTitle()
public abstract boolean isActive()
IRemoteCommandShell
isActive in interface IRemoteCommandShellpublic void updateHistory(String cmd)
updateHistory in interface IRemoteCommandShellpublic String[] getHistory()
IRemoteCommandShell
getHistory in interface IRemoteCommandShellpublic Object getContext()
getContext in interface IRemoteCommandShellpublic String getContextString()
getContextString in interface IRemoteCommandShellnull.public IRemoteFile getWorkingDirectory()
public void setWorkingDirectory(IRemoteFile file)
file - the working directory.protected boolean isWindows()
public abstract ICandidateCommand[] getCandidateCommands()
getCandidateCommands in interface IRemoteCommandShellpublic void associateProject(IProject project)
associateProject in interface IRemoteCommandShellpublic IProject getAssociatedProject()
getAssociatedProject in interface IRemoteCommandShell
|
RSE Release 3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||