public boolean acceptIdentical(String filePath,String fileName){
  if (fileNameGlob == null)   return false;
  if (fileName != null && fileName.equalsIgnoreCase(fileNameGlob))   return true;
  if (filePath != null) {
    int lastUnixPos=filePath.lastIndexOf('/');
    int lastWindowsPos=filePath.lastIndexOf('\\');
    int index=Math.max(lastUnixPos,lastWindowsPos);
    String filename=filePath.substring(index + 1);
    return filename != null && filename.equalsIgnoreCase(fileNameGlob);
  }
  return false;
}

public boolean acceptIdentical ( String filePath , String fileName ) { if ( fileNameGlob == null ) return false ; if ( fileName != null && fileName . equalsIgnoreCase ( fileNameGlob ) ) return true ; if ( filePath != null ) { int lastUnixPos = filePath . lastIndexOf ( '/' ) ; int lastWindowsPos = filePath . lastIndexOf ( '\\' ) ; int index = Math . max ( lastUnixPos , lastWindowsPos ) ; String filename = filePath . substring ( index + 1 ) ; return filename != null && filename . equalsIgnoreCase ( fileNameGlob ) ; } return false ; }
returns true if the buffer path or name is identical to the file name glob . this works only for regular expressions that only represent themselves , i . e . without any meta - characters .
