public boolean accept(File dir,String name){
  File file=new File(dir,name);
  if (file.isDirectory())   return true;
  String filterString=getFilterString();
  if (filterString == null || filterString.length() == 0)   return true;
  if (name == null)   return false;
  if (name.indexOf('~') != -1 || name.equals("FileUtil.java"))   return false;
  return name.indexOf(filterString) != -1;
}

public boolean accept ( File dir , String name ) { File file = new File ( dir , name ) ; if ( file . isDirectory ( ) ) return true ; String filterString = getFilterString ( ) ; if ( filterString == null || filterString . length ( ) == 0 ) return true ; if ( name == null ) return false ; if ( name . indexOf ( '~' ) != - 1 || name . equals ( "FileUtil.java" ) ) return false ; return name . indexOf ( filterString ) != - 1 ; }
accept directories and files matching filter .
