From 2b6e44202b11e12526e0301e7ae16f069220fab3 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Tue, 9 May 2017 12:11:30 +0100 Subject: [PATCH] JAL-2465 fix to dynamically specify data source type in StructureSelectionManager.setMapping(...) method --- src/jalview/structure/StructureSelectionManager.java | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.2