From: Charles Ofoegbu Date: Mon, 2 Feb 2015 10:30:13 +0000 (+0000) Subject: JAL-1644 improvment of finder logic to include the sequence description field X-Git-Tag: Jalview_2_9~101^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a6e32ecfbd6ba17bda3d58ebdbadaec7302073c0;p=jalview.git JAL-1644 improvment of finder logic to include the sequence description field --- diff --git a/src/jalview/analysis/Finder.java b/src/jalview/analysis/Finder.java index 96151d7..b253642 100644 --- a/src/jalview/analysis/Finder.java +++ b/src/jalview/analysis/Finder.java @@ -20,9 +20,12 @@ */ package jalview.analysis; -import java.util.*; +import jalview.datamodel.AlignmentI; +import jalview.datamodel.SearchResults; +import jalview.datamodel.Sequence; +import jalview.datamodel.SequenceGroup; -import jalview.datamodel.*; +import java.util.Vector; public class Finder { @@ -146,6 +149,18 @@ public class Finder break; } } + + if (regex.search(seq.getDescription())) + { + idMatch.addElement(seq); + hasResults = true; + if (!findAll) + { + // stop and return the match + found = true; + break; + } + } } item = seq.getSequenceAsString();