From: Jim Procter Date: Fri, 14 Dec 2018 11:59:45 +0000 (+0000) Subject: JAL-3171 register existing dataset for new view X-Git-Tag: Release_2_11_1_0~78^2~16 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=817f6a0616bc319e28801ba545fae3c8907bacbc;p=jalview.git JAL-3171 register existing dataset for new view --- 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);