JAL-2465 fix to dynamically specify data source type in StructureSelectionManager...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 9 May 2017 11:11:30 +0000 (12:11 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 9 May 2017 11:11:30 +0000 (12:11 +0100)
src/jalview/structure/StructureSelectionManager.java

index b993be2..0e98921 100644 (file)
@@ -35,6 +35,7 @@ import jalview.datamodel.SearchResultsI;
 import jalview.datamodel.SequenceI;
 import jalview.ext.jmol.JmolParser;
 import jalview.gui.IProgressIndicator;
+import jalview.io.AppletFormatAdapter;
 import jalview.io.DataSourceType;
 import jalview.io.StructureFile;
 import jalview.util.MappingUtils;
@@ -384,6 +385,7 @@ public class StructureSelectionManager
     boolean isMapUsingSIFTs = SiftsSettings.isMapWithSifts();
     try
     {
+      sourceType = AppletFormatAdapter.checkProtocol(pdbFile);
       pdb = new JmolParser(pdbFile, sourceType);
 
       if (pdb.getId() != null && pdb.getId().trim().length() > 0