Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem
Class ServiceCommandShell

java.lang.Object
  extended by 

org.eclipse.rse.subsystems.shells.core.model.RemoteCommandShell
      extended by 
org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.ServiceCommandShell
All Implemented Interfaces:
IAdaptable, IHostShellOutputListener, IRemoteCommandShell, IServiceCommandShell

public class ServiceCommandShell
extends RemoteCommandShell
implements IServiceCommandShell


Field Summary
protected   IHostShell _hostShell
           
 
Fields inherited from class org.eclipse.rse.subsystems.shells.core.model. RemoteCommandShell
_cmdHistory, _cmdSubSystem, _cwd, _fileSubSystem, _id, _name, _output, _project, _type
 
Constructor Summary
ServiceCommandShell ( IRemoteCmdSubSystem cmdSS, IHostShell hostShell)
           
 
Method Summary
  ICandidateCommand[] getCandidateCommands ()
          Override to provide a list of possible commands
  IHostShell getHostShell ()
           
  String getTitle ()
           
 boolean isActive ()
          Indicate whether the corresponding command is running or not
protected  void notifyOutputChanged ( IRemoteOutput[] outputs, boolean cwdChanged)
          Notify listeners about new outputs.
 void shellOutputChanged ( IHostShellChangeEvent event)
           
 void writeToShell ( String cmd)
           
 
Methods inherited from class org.eclipse.rse.subsystems.shells.core.model. RemoteCommandShell
addOutput, associateProject, getAdapter, getAssociatedProject, getCommandSubSystem, getContext, getContextString, getFileSubSystem, getHistory, getId, getIndexOf, getName, getOutputAt, getRoots, getSize, getType, getWorkingDirectory, isWindows, listOutput, removeOutput, removeOutput, setName, setType, setWorkingDirectory, updateHistory
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.subsystems.shells.core.subsystems. IRemoteCommandShell
addOutput, associateProject, getAssociatedProject, getCommandSubSystem, getContext, getContextString, getFileSubSystem, getHistory, getId, getIndexOf, getName, getOutputAt, getSize, getType, listOutput, removeOutput, removeOutput, updateHistory
 

Field Detail

_hostShell

protected 
IHostShell _hostShell
Constructor Detail

ServiceCommandShell

public ServiceCommandShell(
IRemoteCmdSubSystem cmdSS,
                           
IHostShell hostShell)
Method Detail

getTitle

public 
String getTitle()
Specified by:
getTitle in class RemoteCommandShell

isActive

public boolean isActive()
Description copied from interface: IRemoteCommandShell
Indicate whether the corresponding command is running or not

Specified by:
isActive in interface IRemoteCommandShell
Specified by:
isActive in class RemoteCommandShell
Returns:
whether the command is running or not

getHostShell

public 
IHostShell getHostShell()
Specified by:
getHostShell in interface IServiceCommandShell

shellOutputChanged

public void shellOutputChanged(
IHostShellChangeEvent event)
Specified by:
shellOutputChanged in interface IHostShellOutputListener

notifyOutputChanged

protected void notifyOutputChanged(
IRemoteOutput[] outputs,
                                   boolean cwdChanged)
Notify listeners about new outputs. This will update any shell views with the new data.

Parameters:
outputs - the output objects to notify
cwdChanged - true if the current directory changed
Since:
org.eclipse.rse.subsystems.shells.core 3.0

getCandidateCommands

public 
ICandidateCommand[] getCandidateCommands()
Description copied from class: RemoteCommandShell
Override to provide a list of possible commands

Specified by:
getCandidateCommands in interface IRemoteCommandShell
Specified by:
getCandidateCommands in class RemoteCommandShell
Returns:
the list of possible commands

writeToShell

public void writeToShell(
String cmd)
Specified by:
writeToShell in interface IServiceCommandShell

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire