From 817f6a0616bc319e28801ba545fae3c8907bacbc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 14 Dec 2018 11:59:45 +0000 Subject: [PATCH] JAL-3171 register existing dataset for new view --- src/jalview/gui/Jalview2XML.java | 3 +++ src/jalview/project/Jalview2XML.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 87b8d87..edadf75 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -5453,6 +5453,9 @@ public class Jalview2XML initSeqRefs(); JalviewModel jm = saveState(ap, null, null, null); + addDatasetRef(jm.getVamsasModel().getSequenceSet()[0].getDatasetId(), + ap.getAlignment().getDataset()); + uniqueSetSuffix = ""; jm.getJalviewModelSequence().getViewport(0).setId(null); // we don't overwrite the view we just copied diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index e546789..c461210 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -5563,6 +5563,10 @@ public class Jalview2XML initSeqRefs(); JalviewModel jm = saveState(ap, null, null, null); + addDatasetRef( + jm.getVamsasModel().getSequenceSet().get(0).getDatasetId(), + ap.getAlignment().getDataset()); + uniqueSetSuffix = ""; // jm.getJalviewModelSequence().getViewport(0).setId(null); jm.getViewport().get(0).setId(null); -- 1.7.10.2