Difference for src/PdbFilter.java from version 1.1 to 1.2

version 1.1version 1.2
Line 2
Line 2
 // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois
 // Theoretical Biophysics Group  http://www.ks.uiuc.edu/ // Theoretical Biophysics Group  http://www.ks.uiuc.edu/
 // //
 // $Id: PdbFilter.java,v 1.1 2002/07/09 17:49:57 mbach Exp $ // $Id: PdbFilter.java,v 1.2 2002/10/18 16:03:11 mbach Exp $
 // //
  
  
 /** FileFilter class to filter PDB and WRL files for the JFileChooser */ /** FileFilter class to filter PDB (and WRL) files for the JFileChooser */
 public class PdbFilter extends javax.swing.filechooser.FileFilter { public class PdbFilter extends javax.swing.filechooser.FileFilter {
     public boolean accept(java.io.File f) {     public boolean accept(java.io.File f) {
         if(f.isDirectory()) {         if(f.isDirectory()) {
             return true;             return true;
         }         }
                  
         if(f.getName().endsWith(".pdb") ||         if(f.getName().endsWith(".pdb") 
            f.getName().endsWith(".wrl")) {            //|| f.getName().endsWith(".wrl")
             ) {
             return true;             return true;
         }         }
                  
Line 22
Line 23
     }     }
          
     public String getDescription() {     public String getDescription() {
         return ("PDB and VRML files");         //return ("PDB and VRML files");
          return ("PDB Files");
     }     }
 } }


Legend:
Removed in v.1.1 
changed lines
 Added in v.1.2



Made by using version 1.65 of cvs2html