* @param pattern The pattern for this instance.
* @param projectName The possibly null current project name.
*/
public FilePathComparator(String pattern, String projectName)
{
this.distance = new Levenstein();
this.pattern = pattern;
this.pattern = this.pattern.replaceAll("\\.\\*\\??", "");
this.projectName = projectName;
}