JAL-674 friendly name for PDB file included in secondary structure tooltip
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:41:50 +0000 (14:41 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:41:50 +0000 (14:41 +0000)
src/jalview/ext/jmol/PDBFileWithJmol.java

index 9fa6bf4..f5710d3 100644 (file)
@@ -186,9 +186,12 @@ public class PDBFileWithJmol extends AlignFile implements
                   seqs.add(sq);
                   if (!isNa)
                   {
+                    String mt = model.getModelTitle() == null ? getDataName()
+                            : model.getModelTitle();
+                    mt += _lastChainId;
                     AlignmentAnnotation ann = new AlignmentAnnotation(
                             "Secondary Structure",
-                            "Secondary Structure from PDB File", asecstr);
+                            "Secondary Structure for " + mt, asecstr);
                     ann.belowAlignment=true;
                     ann.visible=true;
                     ann.autoCalculated=false;