// Use default action if one has been set, if not show up a dialog
if(defaultFileExistsAction==FileCollisionDialog.ASK_ACTION) {
FileCollisionDialog dialog = new FileCollisionDialog(getProgressDialog(), getMainFrame(), collision, file, destFile, true, true);
choice = waitForUserResponse(dialog);
// If 'apply to all' was selected, this choice will be used for any other files (user will not be asked again)
if(dialog.applyToAllSelected())
defaultFileExistsAction = choice;
}
else
choice = defaultFileExistsAction;