Changeset 2544


Ignore:
Timestamp:
04/03/07 17:22:04 (13 years ago)
Author:
curtis
Message:

Use new loci.formats.gui package for file chooser stuff.

Location:
trunk/loci/ome
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/ome/editor/MetadataNotebook.java

    r2522 r2544  
    3333import javax.swing.filechooser.FileFilter; 
    3434import loci.formats.*; 
     35import loci.formats.gui.ExtensionFileFilter; 
     36import loci.formats.gui.GUITools; 
    3537import org.openmicroscopy.xml.OMENode; 
    3638import org.w3c.dom.*; 
     
    317319    ExtensionFileFilter[] filters = 
    318320      new ExtensionFileFilter[] {tiffFilter, omeFilter}; 
    319     saver = FormatTools.buildFileChooser(filters); 
     321    saver = GUITools.buildFileChooser(filters); 
    320322    saver.setCurrentDirectory(new File(System.getProperty("user.dir"))); 
    321323    if (metadata.reader == null) metadata.reader = new ImageReader(); 
    322     opener = metadata.reader.getFileChooser(); 
     324    opener = GUITools.buildFileChooser(metadata.reader); 
    323325    opener.setCurrentDirectory(new File(System.getProperty("user.dir"))); 
    324326 
  • trunk/loci/ome/notebook/Notebook.java

    r2513 r2544  
    3333import javax.swing.filechooser.FileFilter; 
    3434import loci.formats.*; 
     35import loci.formats.gui.GUITools; 
    3536import loci.formats.ome.*; 
    3637import org.openmicroscopy.xml.*; 
     
    309310      try { 
    310311        ImageReader reader = new ImageReader(); 
    311         JFileChooser chooser = reader.getFileChooser(); 
     312        JFileChooser chooser = GUITools.buildFileChooser(reader); 
    312313 
    313314        int status = chooser.showOpenDialog(this); 
Note: See TracChangeset for help on using the changeset viewer.