126 |
File f = StdUtils.showSaveLscpFileChooser(this); |
File f = StdUtils.showSaveLscpFileChooser(this); |
127 |
if(f == null) return; |
if(f == null) return; |
128 |
|
|
129 |
if(f.exists()) { |
boolean b = preferences().getBoolProperty("nativeFileChoosers"); |
130 |
|
// On Mac OS the native file chooser asks whether to replace a file |
131 |
|
if(f.exists() && !(CC.isMacOS() && b)) { |
132 |
String msg = i18n.getMessage("JSLscpScriptDlg.overwriteFile?"); |
String msg = i18n.getMessage("JSLscpScriptDlg.overwriteFile?"); |
133 |
if(!HF.showYesNoDialog(CC.getMainFrame(), msg)) return; |
if(!HF.showYesNoDialog(CC.getMainFrame(), msg)) return; |
134 |
} |
} |