JAL-1803 restore property array for a sequence’s associated PDBEntry from project.
authorJim Procter <jprocter@issues.jalview.org>
Sun, 4 Sep 2016 12:20:01 +0000 (13:20 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 4 Sep 2016 12:20:01 +0000 (13:20 +0100)
src/jalview/gui/Jalview2XML.java

index c80f3de..5d187da 100644 (file)
@@ -3002,6 +3002,17 @@ public class Jalview2XML
                 entry.setFile(pdbloaded.get(ids[p].getId()).toString());
               }
             }
+            if (ids[p].getPdbentryItem() != null)
+            {
+              entry.setProperty(new Hashtable());
+              for (PdbentryItem item : ids[p].getPdbentryItem())
+              {
+                for (Property pr : item.getProperty())
+                {
+                  entry.getProperty().put(pr.getName(), pr.getValue());
+                }
+              }
+            }
             StructureSelectionManager.getStructureSelectionManager(
                     Desktop.instance).registerPDBEntry(entry);
             // adds PDBEntry to datasequence's set (since Jalview 2.10)