/** * Determines whether a given <code>File</code> object is accepted by this filter. * * @param file * The given <code>File</code> object. * @return <code>true</code>, if the given <code>File</code> object is accepted, * <code>fase</code> otherwise. */ public boolean accept(File file) { if (file.isDirectory()) // show all directories return true; // show PEAR files String ext = FileUtil.getFileNameExtension(file.getName()).toLowerCase(); return ext.equals(TEAR_EXT) || ext.equals(PEAR_EXT); }