From 469613dca9aaba818ffd4b5220f76e674dea0126 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 4 Sep 2016 13:20:01 +0100 Subject: [PATCH] =?utf8?q?JAL-1803=20restore=20property=20array=20for=20a=20?= =?utf8?q?sequence=E2=80=99s=20associated=20PDBEntry=20from=20project.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/Jalview2XML.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 1.7.10.2