From 6b5be9539790b6a84a9f5f73053f6713ffdba54a Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 26 Nov 2014 14:41:50 +0000 Subject: [PATCH] JAL-674 friendly name for PDB file included in secondary structure tooltip --- src/jalview/ext/jmol/PDBFileWithJmol.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/jmol/PDBFileWithJmol.java b/src/jalview/ext/jmol/PDBFileWithJmol.java index 9fa6bf4..f5710d3 100644 --- a/src/jalview/ext/jmol/PDBFileWithJmol.java +++ b/src/jalview/ext/jmol/PDBFileWithJmol.java @@ -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; -- 1.7.10.2