org.eclipse.ecf.ui.actions
Class AsynchContainerConnectAction

java.lang.Object
  extended by org.eclipse.ecf.ui.actions.SynchContainerConnectAction
      extended by org.eclipse.ecf.ui.actions.AsynchContainerConnectAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

public class AsynchContainerConnectAction
extends SynchContainerConnectAction

Action class for invoking IContainer.connect(ID, IConnectContext) as separate job.


Field Summary
 
Fields inherited from class org.eclipse.ecf.ui.actions.SynchContainerConnectAction
connectContext, container, exceptionHandler, successBlock, targetID, window
 
Constructor Summary
AsynchContainerConnectAction(IContainer container, ID targetID, IConnectContext connectContext)
           
AsynchContainerConnectAction(IContainer container, ID targetID, IConnectContext connectContext, IExceptionHandler exceptionHandler)
           
AsynchContainerConnectAction(IContainer container, ID targetID, IConnectContext connectContext, IExceptionHandler exceptionHandler, java.lang.Runnable successBlock)
           
 
Method Summary
 void dispose()
           
protected  org.eclipse.core.runtime.IStatus getStatusForECFException(ECFException exception)
           
protected  org.eclipse.core.runtime.IStatus handleException(java.lang.Throwable e)
           
 void run()
           
 void run(org.eclipse.jface.action.IAction action)
           
 
Methods inherited from class org.eclipse.ecf.ui.actions.SynchContainerConnectAction
getConnectContext, getContainer, getExceptionHandler, getSuccessBlock, getTargetID, getWindow, handleConnectException, init, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchContainerConnectAction

public AsynchContainerConnectAction(IContainer container,
                                    ID targetID,
                                    IConnectContext connectContext,
                                    IExceptionHandler exceptionHandler,
                                    java.lang.Runnable successBlock)

AsynchContainerConnectAction

public AsynchContainerConnectAction(IContainer container,
                                    ID targetID,
                                    IConnectContext connectContext,
                                    IExceptionHandler exceptionHandler)

AsynchContainerConnectAction

public AsynchContainerConnectAction(IContainer container,
                                    ID targetID,
                                    IConnectContext connectContext)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
Overrides:
dispose in class SynchContainerConnectAction

handleException

protected org.eclipse.core.runtime.IStatus handleException(java.lang.Throwable e)

getStatusForECFException

protected org.eclipse.core.runtime.IStatus getStatusForECFException(ECFException exception)

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate
Overrides:
run in class SynchContainerConnectAction

run

public void run()