JAL-3171 register existing dataset for new view
authorJim Procter <jprocter@issues.jalview.org>
Fri, 14 Dec 2018 11:59:45 +0000 (11:59 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 14 Dec 2018 12:00:42 +0000 (12:00 +0000)
src/jalview/gui/Jalview2XML.java
src/jalview/project/Jalview2XML.java

index 87b8d87..edadf75 100644 (file)
@@ -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
index e546789..c461210 100644 (file)
@@ -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);