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

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

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

revision 1351 by iliev, Tue Aug 28 17:00:19 2007 UTC revision 1352 by iliev, Sun Sep 16 23:24:15 2007 UTC
# Line 49  import org.jsampler.Instrument; Line 49  import org.jsampler.Instrument;
49  import org.jsampler.JSPrefs;  import org.jsampler.JSPrefs;
50    
51  import static org.jsampler.view.std.StdI18n.i18n;  import static org.jsampler.view.std.StdI18n.i18n;
52    import static org.linuxsampler.lscp.Parser.*;
53    
54    
55  /**  /**
# Line 251  public class JSAddOrEditInstrumentDlg ex Line 252  public class JSAddOrEditInstrumentDlg ex
252                          JFileChooser fc = new JFileChooser(path);                          JFileChooser fc = new JFileChooser(path);
253                          int result = fc.showOpenDialog(JSAddOrEditInstrumentDlg.this);                          int result = fc.showOpenDialog(JSAddOrEditInstrumentDlg.this);
254                          if(result != JFileChooser.APPROVE_OPTION) return;                          if(result != JFileChooser.APPROVE_OPTION) return;
255                                            
256                          cbPath.setSelectedItem(fc.getSelectedFile().getAbsolutePath());                          String s = toEscapedString(fc.getSelectedFile().getAbsolutePath());
257                            cbPath.setSelectedItem(s);
258                          path = fc.getCurrentDirectory().getAbsolutePath();                          path = fc.getCurrentDirectory().getAbsolutePath();
259                          preferences().setStringProperty("lastInstrumentLocation", path);                          preferences().setStringProperty("lastInstrumentLocation", path);
260                  }                  }

Legend:
Removed from v.1351  
changed lines
  Added in v.1352

  ViewVC Help
Powered by ViewVC