|
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.RemoteCommandHelpers
Static helpers to simplify the act of running a universal command against a local or remote Unix, Windows or Linux command shell.
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
RemoteCommandHelpers()
Constructor for RemoteCommandHelpers. |
Method Summary | |
---|---|
static String |
getWorkingDirectory(IRemoteFile selectedFile)
Helper method to return the path to change-directory to, given a selected remote file object |
static boolean |
runUniversalCommand(Shell shell,
String cmdString,
String path,
RemoteCmdSubSystem cmdSubSystem)
|
static boolean |
runUniversalCommand(Shell shell,
String cmdString,
String path,
RemoteCmdSubSystem cmdSubSystem,
boolean isCompile)
Encapsulation of code needed to run a universal subsystem command. |
static void |
showInView(IRemoteCommandShell cmd)
Show/log the given command in the commands view |
static void |
showInView(IRemoteCommandShell cmd,
boolean isCompile,
String cmdString)
|
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
Constructor Detail |
public RemoteCommandHelpers()
Method Detail |
public static String getWorkingDirectory(IRemoteFile selectedFile)
public static boolean runUniversalCommand(Shell shell, String cmdString, String path, RemoteCmdSubSystem cmdSubSystem)
public static boolean runUniversalCommand(Shell shell, String cmdString, String path, RemoteCmdSubSystem cmdSubSystem, boolean isCompile)
shell
- - the shell to use if need to prompt for password or show msg dialogcmdString
- - the resolved commandpath
- - the path to run the command againstcmdSubSystem
- - this connection's command subsystem, which will run the command
public static void showInView(IRemoteCommandShell cmd)
public static void showInView(IRemoteCommandShell cmd, boolean isCompile, String cmdString)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |