From: tcofoegbu Date: Tue, 9 May 2017 11:11:30 +0000 (+0100) Subject: JAL-2465 fix to dynamically specify data source type in StructureSelectionManager... X-Git-Tag: Release_2_10_2~3^2~57^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2b6e44202b11e12526e0301e7ae16f069220fab3;p=jalview.git JAL-2465 fix to dynamically specify data source type in StructureSelectionManager.setMapping(...) method --- diff --git a/src/jalview/structure/StructureSelectionManager.java b/src/jalview/structure/StructureSelectionManager.java index b993be2..0e98921 100644 --- a/src/jalview/structure/StructureSelectionManager.java +++ b/src/jalview/structure/StructureSelectionManager.java @@ -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