From: Jim Procter Date: Sun, 4 Sep 2016 12:20:01 +0000 (+0100) Subject: JAL-1803 restore property array for a sequence’s associated PDBEntry from project. X-Git-Tag: Release_2_10_0~47^2~4^2~18 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=469613dca9aaba818ffd4b5220f76e674dea0126;p=jalview.git JAL-1803 restore property array for a sequence’s associated PDBEntry from project. --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index c80f3de..5d187da 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -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)