|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.connectorservice.ssh.SshConnectorService.SessionLostHandler
Handle session-lost events. This is generic for any sort of connector service. Most of this is extracted from dstore's ConnectionStatusListener. TODO should be refactored to make it generally available, and allow dstore to derive from it.
| Constructor Summary | |
|---|---|
SshConnectorService.SessionLostHandler(IConnectorService cs)
|
|
| Method Summary | |
|---|---|
protected IRunnableContext |
getRunnableContext(Shell rshell)
Get the progress monitor dialog for this operation. |
Shell |
getShell()
|
boolean |
isSessionLost()
|
void |
run()
|
void |
run(IProgressMonitor monitor)
|
void |
sessionLost()
Notify that the connection has been lost. |
protected void |
showDisconnectCancelledMessage(Shell shell,
String hostName,
int port)
Show an error message when the user cancels the disconnection. |
protected void |
showDisconnectErrorMessage(Shell shell,
String hostName,
int port,
Exception exc)
Show an error message when the disconnection fails. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SshConnectorService.SessionLostHandler(IConnectorService cs)
| Method Detail |
public void sessionLost()
public boolean isSessionLost()
public void run()
run in interface Runnable
public void run(IProgressMonitor monitor)
throws InvocationTargetException,
InterruptedException
run in interface IRunnableWithProgressInvocationTargetException
InterruptedExceptionpublic Shell getShell()
protected IRunnableContext getRunnableContext(Shell rshell)
protected void showDisconnectErrorMessage(Shell shell,
String hostName,
int port,
Exception exc)
protected void showDisconnectCancelledMessage(Shell shell,
String hostName,
int port)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||