Merge branch 'spike/JAL-2040_JAL-2137_phyre2' into features/JAL-2040_JAL-2137_phyre2 features/JAL-2040_JAL-2137_phyre2
authorJim Procter <jprocter@issues.jalview.org>
Thu, 19 Jan 2017 17:08:41 +0000 (17:08 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 19 Jan 2017 17:08:41 +0000 (17:08 +0000)
1  2 
src/jalview/ext/jmol/JmolParser.java
src/jalview/io/AnnotationFile.java
src/jalview/structure/StructureSelectionManager.java

@@@ -186,6 -170,13 +186,14 @@@ public class JmolParser extends Structu
        makeResidueList();
        makeCaBondList();
  
+       if (getId() == null)
+       {
+         // always use resource name, not the hardwired file
+         // Does the value of ID get used ? Behaviour needs to be
+         // documented and tested
+         setId(getDataName());
+       }
++
        for (PDBChain chain : getChains())
        {
          SequenceI chainseq = postProcessChain(chain);
@@@ -32,10 -34,14 +34,13 @@@ import jalview.datamodel.SequenceGroup
  import jalview.datamodel.SequenceI;
  import jalview.schemes.ColourSchemeI;
  import jalview.schemes.ColourSchemeProperty;
 -import jalview.schemes.ResidueProperties;
  import jalview.schemes.UserColourScheme;
+ import jalview.structure.StructureSelectionManager;
  
  import java.io.BufferedReader;
+ import java.io.File;
  import java.io.FileReader;
+ import java.io.IOException;
  import java.io.InputStreamReader;
  import java.io.StringReader;
  import java.net.URL;