* @throws InvocationTargetException
* @throws InterruptedException
*/
public void put(final String directory) throws SftpException,
JSchException, InvocationTargetException, InterruptedException {
ProgressMonitorDialog progress =
new ProgressMonitorDialog((Display.getCurrent() == null) ? null
: Display.getCurrent().getActiveShell());
progress.setCancelable(true);
PlatformUI.getWorkbench().getProgressService().busyCursorWhile(
new IRunnableWithProgress() {
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {