public void run() {
FileRenamerPreviewDialog dlg = new FileRenamerPreviewDialog(parent, result, pattern, baseDir);
dlg.setVisible(true);
if (dlg.isAffirmative()) {
FileRenamer task = FileRenamer.getInstance();
task.start(parent, baseDir, pattern, dlg.getObjects());
dlg.clear();
} else {
parent.notifyJobStopped();
}
}