|
org.eclipse.rse.services.shells
Class AbstractShellService
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.rse.services.AbstractService
org.eclipse.rse.services.shells.AbstractShellService
-
All Implemented Interfaces:
-
IAdaptable,
IService,
IShellService
-
public abstract class AbstractShellService
- extends
AbstractService
- implements
IShellService
Abstract base class for RSE Shell Service implementations.
-
Since:
- org.eclipse.rse.services 3.0
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
AbstractShellService
public AbstractShellService()
getHostEnvironment
public
String[] getHostEnvironment()
throws
SystemMessageException
- Return an empty host environment. Extenders should override this method
if they are able to return environment on the remote side. If they do not
implement this feature, they must not override this method.
-
-
Specified by:
-
getHostEnvironment
in interface
IShellService
-
-
Returns:
- Array of environment variable Strings of the form "var=text" if
supported by a shell service implementation. Should return an
empty array in case environment variable retrieval is not
supported on a particular shell service implementation.
-
Throws:
-
SystemMessageException
- in case an error occurred or the user
chose to cancel the operation via the progress monitor. -
See Also:
-
IShellService.getHostEnvironment()
launchShell
public
IHostShell launchShell(
String initialWorkingDirectory,
String[] environment,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IShellService
- Launch a new shell in the specified directory with a default encoding.
This is a convenience method, passing
null as encoding
into
IShellService.launchShell(String, String, String[], IProgressMonitor) .
-
-
Specified by:
-
launchShell
in interface
IShellService
-
-
Throws:
-
SystemMessageException
- in case an error occurred or the user
chose to cancel the operation via the progress monitor.
runCommand
public
IHostShell runCommand(
String initialWorkingDirectory,
String command,
String[] environment,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IShellService
- Run a single command in it's own shell with a default encoding.
This is a convenience method, passing
null as encoding
into
IShellService.runCommand(String, String, String, String[], IProgressMonitor) .
-
-
Specified by:
-
runCommand
in interface
IShellService
-
-
Throws:
-
SystemMessageException
- in case an error occurred or the user
chose to cancel the operation via the progress monitor.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|