Changeset 1368


Ignore:
Timestamp:
08/28/06 13:30:53 (14 years ago)
Author:
curtis
Message:

Only set default directory to match ImageJ if it is not null.

Location:
trunk/loci/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/LociImporter.java

    r1365 r1368  
    9292    else { 
    9393      JFileChooser chooser = reader.getFileChooser(); 
    94       chooser.setCurrentDirectory(new File(OpenDialog.getDefaultDirectory())); 
     94      String dir = OpenDialog.getDefaultDirectory(); 
     95      if (dir != null) chooser.setCurrentDirectory(new File(dir)); 
    9596 
    9697      // add some additional options to the file chooser 
  • trunk/loci/plugins/browser/LociOpener.java

    r1271 r1368  
    4747  public LociOpener() { 
    4848    // set up the file chooser 
    49     fc = new JFileChooser(OpenDialog.getDefaultDirectory()); 
     49    String ijDir = OpenDialog.getDefaultDirectory(); 
     50    fc = ijDir == null ? new JFileChooser() : new JFileChooser(ijDir); 
     51 
    5052    // add a custom file filter 
    5153    FileFilter[] ff = LociDataBrowser.reader.getFileFilters(); 
Note: See TracChangeset for help on using the changeset viewer.