JAL-2262 JAL-2195 Improvement to set PDBId availability in a flag
[jalview.git] / src / jalview / structure / StructureSelectionManager.java
index 2e0975d..7e691be 100644 (file)
@@ -390,11 +390,9 @@ public class StructureSelectionManager
       {
         registerPDBFile(pdb.getId().trim(), pdbFile);
       }
-      // if PDB/mmCIF file is local then don't perform SIFTS MAPPING
-      if (pdb.getId().contains("."))
-      {
-        isMapUsingSIFTs = false;
-      }
+      // if PDBId is unavailable then skip SIFTS mapping execution path
+      isMapUsingSIFTs = pdb.isPPDBIdAvailable();
+
     } catch (Exception ex)
     {
       ex.printStackTrace();