import jalview.api.AlignmentViewPanel;
import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.AlignmentTest;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
import jalview.gui.CrossRefAction;
af = jalview.gui.SequenceFetcher.fetchAndShow(did[0], did[1])
.get(0);
assertTrue("Didn't retrieve " + first, af != null);
+
+ // verify references for retrieved data
+ AlignmentTest.verifyAlignmentDatasetRefs(af.getViewport()
+ .getAlignment(), true);
+
// store project to recover on next pass
stringify(dbtoviewBit, savedProjects, first, af.alignPanel);
}
// recover stored project
af = new FileLoader(false).LoadFileWaitTillLoaded(savedProjects
.get(first).toString(), FormatAdapter.FILE);
+
+ // verify references for recovered data
+ AlignmentTest.verifyAlignmentDatasetRefs(af.getViewport()
+ .getAlignment(), true);
+
}
boolean dna = af.getViewport().getAlignment().isNucleotide();
}
for (AlignmentViewPanel avp : cra_views)
{
+ // verify references for this panel
+ AlignmentTest.verifyAlignmentDatasetRefs(avp.getAlignment(),
+ true);
SequenceI[] xrseqs = avp.getAlignment().getSequencesArray();
nextxref = first + " -> " + db + "{" + p++ + "}";
{
nextnextxref = "{" + p + "}" + nextxref + " -> "
+ xrefdb + "{" + q++ + "}";
+
+ // verify references for this panel
+ AlignmentTest.verifyAlignmentDatasetRefs(
+ nextavp.getAlignment(), true);
+
viewsourcedb.put(nextavp, nextnextxref);
stringify(dbtoviewBit, savedProjects, nextnextxref,
nextavp);