else {
MainFrame mainFrame = folderPanel.getMainFrame();
AbstractFile destFolder = folderPanel.getCurrentFolder();
if(currentDropAction==DnDConstants.ACTION_MOVE) {
// Start moving files
ProgressDialog progressDialog = new ProgressDialog(mainFrame, Translator.get("move_dialog.moving"));
MoveJob moveJob = new MoveJob(progressDialog, mainFrame, droppedFiles, destFolder, null, FileCollisionDialog.ASK_ACTION, false);
progressDialog.start(moveJob);
}
else {
// Start copying files
ProgressDialog progressDialog = new ProgressDialog(mainFrame, Translator.get("copy_dialog.copying"));
CopyJob job = new CopyJob(progressDialog, mainFrame, droppedFiles, destFolder, null, CopyJob.COPY_MODE, FileCollisionDialog.ASK_ACTION);
progressDialog.start(job);
}
}
// Report that the drop event has been successfully handled
event.dropComplete(true);