/[svn]/jsampler/trunk/src/org/jsampler/view/std/JSLscpScriptDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/std/JSLscpScriptDlg.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1882 by iliev, Sun Mar 22 18:11:39 2009 UTC revision 1883 by iliev, Sun Apr 5 09:15:35 2009 UTC
# Line 126  public class JSLscpScriptDlg extends JDi Line 126  public class JSLscpScriptDlg extends JDi
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                  }                  }

Legend:
Removed from v.1882  
changed lines
  Added in v.1883

  ViewVC Help
Powered by ViewVC