X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fjmol%2FPDBFileWithJmol.java;h=847453fdf54d135f8e601f5a4048e02bd7f5c4ee;hb=8ba65cbf8dde2faeff8a84eae78127fb99b765a5;hp=009b9e8df0f1e28cb7fec711ea31090ce2fd664f;hpb=3f136acb9684e4f8440522c41b67a81d5577ba38;p=jalview.git diff --git a/src/jalview/ext/jmol/PDBFileWithJmol.java b/src/jalview/ext/jmol/PDBFileWithJmol.java index 009b9e8..847453f 100644 --- a/src/jalview/ext/jmol/PDBFileWithJmol.java +++ b/src/jalview/ext/jmol/PDBFileWithJmol.java @@ -42,6 +42,7 @@ import jalview.datamodel.Sequence; import jalview.datamodel.SequenceI; import jalview.io.AlignFile; import jalview.io.FileParse; +import jalview.util.MessageManager; /** * Import and process PDB files with Jmol @@ -95,10 +96,7 @@ public class PDBFileWithJmol extends AlignFile implements jmolApp.startViewer(viewer, null); } catch (ClassCastException x) { - throw new Error( - "Jmol version " - + JmolViewer.getJmolVersion() - + " is not compatible with this version of Jalview. Report this problem at issues.jalview.org", + throw new Error(MessageManager.formatMessage("error.jmol_version_not_compatible_with_jalview_version", new String[]{JmolViewer.getJmolVersion()}), x); } } @@ -175,6 +173,9 @@ public class PDBFileWithJmol extends AlignFile implements sq.addPDBId(pdbe); pdbe.setProperty(new Hashtable()); pdbe.getProperty().put("CHAIN", "" + _lastChainId); + // JAL-1533 + // Need to put the number of models for this polymer somewhere for Chimera/others to grab + // pdbe.getProperty().put("PDBMODELS", biopoly.) seqs.add(sq); if (!(biopoly.isDna() || biopoly.isRna())) {