// run a copy operation
try {
// if copying 1 file, the progresss dialog will show a bouncing progress
boolean indeterminate = (sourceNames.length == 1);
FileOperation copyOperation = new FileOperation(fsManager, FileOperation.COPY, indeterminate);
// set copy op arguments
copyOperation.setCopyArgs(sourceNames, sourceConnection, targetFile, destConnection);
// fire operation
new ProgressMonitorDialog(Shell).run(true, true, copyOperation);
}
catch (InvocationTargetException e)