import jalview.io.JalviewFileView;
import jalview.io.JnetAnnotationMaker;
import jalview.io.NewickFile;
+import jalview.io.StructureFile;
import jalview.io.TCoffeeScoreFile;
import jalview.jbgui.GAlignFrame;
import jalview.schemes.Blosum62ColourScheme;
}
if (type != null)
{
- if (type.equalsIgnoreCase("PDB")
- || type.equalsIgnoreCase("mmCIF"))
+ if (StructureFile.isStructureFile(type))
{
filesmatched.add(new Object[] { file, protocol, mtch });
continue;
private String id;
+ public enum StructureFileType
+ {
+ PDB, MMCIF, MMTF
+ };
+
private PDBEntry.Type dbRefType;
/**
{
this.pdbIdAvailable = pdbIdAvailable;
}
+
+ public static boolean isStructureFile(String fileType)
+ {
+ if (fileType == null)
+ {
+ return false;
+ }
+ for (StructureFileType sfType : StructureFileType.values())
+ {
+ if (sfType.name().equalsIgnoreCase(fileType))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
}