CommonUtilities.updateWaitDialogBoxMessage(Properties.getAppProps("waitdialog.done"));
}catch(final IOException e) {
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
new SwingObjectsException("error.severe.SF001", ErrorSeverity.SEVERE,"Exception for us to log",e, FileHelper.class);
String message = e.getMessage();
if(message.indexOf("\\")!=-1) {
message=message.replaceAll(Pattern.quote("\\"), Matcher.quoteReplacement("/"));
}
int option = JOptionPane.showConfirmDialog(null, Properties.getErrorDesc("error.deleteunable",message),
Properties.getAppProps("common.dialog.title.confirm"), JOptionPane.DEFAULT_OPTION);
if (option == JOptionPane.YES_OPTION) {
deleteFolderWaitIfOpen(folder);
}
}
});
} catch (Exception e1) {
new SwingObjectsException("error.severe.SF001", ErrorSeverity.SEVERE,"Exception for us to log",e, FileHelper.class);
}
}
}