}
private boolean checkFile() {
File target = exportUi.getDestination();
if (target.exists()) {
OverwriteConfirmer conf = new DefaultFileChooser.DefaultConfirmer() {
@Override
protected JComponent getMessageObject(File file) {
return new JLabel(getMessage(file));
}
@Override
protected Component getDialogOwner() {
return window.getFrame();
}
};
return conf.confirmOverwrite(target);
}
return true;
}