From 0180bdb7d844cd1119a885dc42329ccc6deeacd5 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 24 Oct 2007 14:11:26 +0000 Subject: [PATCH] thread for product retrieval --- src/jalview/gui/AlignFrame.java | 79 ++++++++++++++++++++++++++------------- 1 file changed, 54 insertions(+), 25 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 53b721d..7efd900 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3612,6 +3612,7 @@ public class AlignFrame public void actionPerformed(ActionEvent e) { + // TODO: new thread for this call with vis-delay af.showProductsFor(sel, ds, isRegSel, dna, source); } @@ -3629,33 +3630,61 @@ public class AlignFrame } protected void showProductsFor(SequenceI[] sel, Alignment ds, boolean isRegSel, boolean dna, String source) { - ds = this.getViewport().alignment.getDataset(); // update our local dataset reference - Alignment prods = CrossRef.findXrefSequences(sel, dna, source, ds); - if (prods!=null) - { - SequenceI[] sprods = new SequenceI[prods.getHeight()]; - for (int s=0; s