|
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.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.subsystems.SubSystem
org.eclipse.rse.subsystems.terminals.core.TerminalServiceSubSystem
public class TerminalServiceSubSystem
A Subsystem that has terminal instances as children.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.rse.core.subsystems.SubSystem |
---|
SubSystem.ChangeStatusJob, SubSystem.ConnectJob, SubSystem.DisconnectJob, SubSystem.DisplayErrorMessageJob, SubSystem.GetPropertiesJob, SubSystem.GetPropertyJob, SubSystem.ResolveAbsoluteJob, SubSystem.ResolveAbsolutesJob, SubSystem.ResolveRelativeJob, SubSystem.SetPropertiesJob, SubSystem.SetPropertyJob, SubSystem.SubSystemOperationJob, SubSystem.SystemMessageDialogRunnable |
Field Summary |
---|
Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
NO_CHILDREN |
Constructor Summary | |
---|---|
TerminalServiceSubSystem(IHost host,
IConnectorService connectorService,
ITerminalService hostService)
Constructor. |
Method Summary | |
---|---|
void |
addChild(TerminalElement element)
|
void |
cancelAllTerminals()
Set the terminal service associated with this subsystem. |
boolean |
canSwitchTo(ISubSystemConfiguration configuration)
Determine if a service subsystem is capable of switching to this new configuration. |
void |
communicationsStateChange(CommunicationsEvent e)
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. |
TerminalElement |
getChild(String terminalTitle)
|
Object[] |
getChildren()
Return the children of this subsystem, to populate the GUI subtree of this subsystem. |
ITerminalServiceSubSystemConfiguration |
getParentRemoteTerminalSubSystemConfiguration()
|
Class |
getServiceType()
Return the service type for this subsystem. |
ITerminalService |
getTerminalService()
Return the Terminal Service associated with this subsystem. |
boolean |
hasChildren()
CHILD CLASSES MAY OVERRIDE THIS. |
void |
initializeSubSystem(IProgressMonitor monitor)
Initialize this subsystem instance after the corresponding IConnectorService connect method finishes. |
boolean |
isPassiveCommunicationsListener()
This method determines if the communications listener is a passive or active listener. |
void |
removeChild(String terminalTitle)
|
void |
removeChild(TerminalElement element)
|
void |
setTerminalService(ITerminalService service)
Set the terminal service associated with this subsystem. |
void |
uninitializeSubSystem(IProgressMonitor monitor)
Uninitialize this subsystem just after disconnect. |
Methods inherited from class org.eclipse.rse.core.model.RSEModelObject |
---|
getDescription |
Methods inherited from class org.eclipse.rse.core.model.PropertySetContainer |
---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
Methods inherited from class org.eclipse.rse.core.model.RSEPersistableObject |
---|
compareStrings, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
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.core.subsystems.IRemoteObjectResolver |
---|
getObjectWithAbsoluteName, getObjectWithAbsoluteName |
Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
---|
contains, isConflicting |
Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
---|
getDescription |
Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
---|
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
Constructor Detail |
---|
public TerminalServiceSubSystem(IHost host, IConnectorService connectorService, ITerminalService hostService)
Method Detail |
---|
public ITerminalService getTerminalService()
public Class getServiceType()
SubSystem
getServiceType
in interface ISubSystem
getServiceType
in class SubSystem
ISubSystem.getServiceType()
public void addChild(TerminalElement element)
addChild
in interface ITerminalServiceSubSystem
public void removeChild(TerminalElement element)
removeChild
in interface ITerminalServiceSubSystem
public void removeChild(String terminalTitle)
removeChild
in interface ITerminalServiceSubSystem
public TerminalElement getChild(String terminalTitle)
getChild
in interface ITerminalServiceSubSystem
public Object[] getChildren()
SubSystem
SubSystem.initializeSubSystem(IProgressMonitor)
is not called in that
case. Similarly, if your subsystem declares custom images for filters or
filter pools, overriding the getChildren() call here to first load your
filter adapters and THEN super.getChildren() is a good idea.
getChildren
in interface ISubSystem
getChildren
in class SubSystem
public boolean hasChildren()
SubSystem
hasChildren
in interface ISubSystem
hasChildren
in class SubSystem
public void setTerminalService(ITerminalService service)
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange
in interface ICommunicationsListener
public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener
in interface ICommunicationsListener
public void cancelAllTerminals()
public void initializeSubSystem(IProgressMonitor monitor) throws SystemMessageException
SubSystem
IConnectorService
connect method finishes. This method should be
overridden if any initialization for the subsystem needs to occur at this
time.
The default implementation currently does nothing, but overriding methods should call super before doing any other work.
initializeSubSystem
in interface ISubSystem
initializeSubSystem
in class SubSystem
monitor
- a progress monitor that can be used to show progress
during long-running operation. Cancellation is typically not
supported since it might leave the system in an inconsistent
state.
SystemMessageException
- if an error occurs during initialization.public void uninitializeSubSystem(IProgressMonitor monitor)
SubSystem
uninitializeSubSystem
in interface ISubSystem
uninitializeSubSystem
in class SubSystem
monitor
- a progress monitor that can be used to show progress
during long-running operation. Cancellation is typically not
supported since it might leave the system in an inconsistent
state.public boolean canSwitchTo(ISubSystemConfiguration configuration)
SubSystem
canSwitchTo
in interface ISubSystem
canSwitchTo
in class SubSystem
configuration
- the configuration to which this subsystem may switch
ISubSystem.canSwitchTo(ISubSystemConfiguration)
public ITerminalServiceSubSystemConfiguration getParentRemoteTerminalSubSystemConfiguration()
getParentRemoteTerminalSubSystemConfiguration
in interface ITerminalServiceSubSystem
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |