Merge branch 'releases/Release_2_10_Branch' into develop
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Oct 2016 08:37:28 +0000 (09:37 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 11 Oct 2016 08:37:28 +0000 (09:37 +0100)
1  2 
src/jalview/ext/jmol/JmolParser.java

@@@ -124,12 -124,11 +124,11 @@@ public class JmolParser extends Structu
        try
        {
          /*
-          * params -o (output to sysout) -i (no info logging, less verbose)
-          * -n (nodisplay) -x (exit when finished)
+          * params -o (output to sysout) -n (nodisplay) -x (exit when finished)
           * see http://wiki.jmol.org/index.php/Jmol_Application
           */
          viewer = (Viewer) JmolViewer.allocateViewer(null, null, null, null,
-                 null, "-x -o -n -i", this);
+                 null, "-x -o -n", this);
          // ensure the 'new' (DSSP) not 'old' (Ramachandran) SS method is used
          viewer.setBooleanProperty("defaultStructureDSSP", true);
        } catch (ClassCastException x)
        List<SequenceI> prot = new ArrayList<SequenceI>();
        PDBChain tmpchain;
        String pdbId = (String) ms.getInfo(0, "title");
 -      setId(pdbId);
 +
 +      if (pdbId == null)
 +      {
 +        setId(safeName(getDataName()));
 +      }
 +      else
 +      {
 +        setId(pdbId);
 +      }
        List<Atom> significantAtoms = convertSignificantAtoms(ms);
        for (Atom tmpatom : significantAtoms)
        {
            tmpchain.atoms.addElement(tmpatom);
          } catch (Exception e)
          {
 -          tmpchain = new PDBChain(pdbId, tmpatom.chain);
 +          tmpchain = new PDBChain(getId(), tmpatom.chain);
            getChains().add(tmpchain);
            tmpchain.atoms.addElement(tmpatom);
          }
        makeResidueList();
        makeCaBondList();
  
 -      if (getId() == null)
 -      {
 -        setId(safeName(getDataName()));
 -      }
        for (PDBChain chain : getChains())
        {
          SequenceI chainseq = postProcessChain(chain);