question: 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 ; }
target:  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.