Designer.findWindowFor(this) == null ?
null : Designer.findWindowFor(this).getFrame();
JFileChooser chooser = Designer.getChooser();
chooser.setDialogTitle(I18N.get("Report.select_source_file"));
Designer.setPrefsDir(chooser, "dataSourceDir");
int returnVal = chooser.showOpenDialog(frame);
if (returnVal == JFileChooser.APPROVE_OPTION) {
Designer.savePrefsDir(chooser, "dataSourceDir");
dataSource.setSourceFile(chooser.getSelectedFile().getPath());
} else {
throw new UserCancellationException(I18N.get("Report.user_cancelled"));