}
else
{
- File fl = new File(getPdbEntry(pe).getFile());
- matches = fl.equals(new File(fileName));
+ String jvPdbFile = getPdbEntry(pe).getFile();
+ File fl = new File(jvPdbFile);
+ matches = fl.equals(new File(fileName)) || JmolCommands.filePathMatch(fileName, jvPdbFile);
if (matches)
{
foundEntry = true;
}
for (int i = 0; i < modelFileNames.length; i++)
{
- if (modelFileNames[i].equalsIgnoreCase(pdbFile))
+ if (JmolCommands.filePathMatch(modelFileNames[i],pdbFile))
{
return String.valueOf(i + 1);
}