From: amwaterhouse Date: Mon, 10 Jan 2005 17:39:32 +0000 (+0000) Subject: Displays number of matches found in search X-Git-Tag: Release_2_0~787 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=587fef46179c0daf041e240c10b03ac5910718a8;p=jalview.git Displays number of matches found in search --- diff --git a/src/jalview/gui/Finder.java b/src/jalview/gui/Finder.java index d78669c..909ba1f 100755 --- a/src/jalview/gui/Finder.java +++ b/src/jalview/gui/Finder.java @@ -117,6 +117,7 @@ public class Finder extends GFinder if(item.indexOf(searchString,r)>-1) { resIndex = item.indexOf(searchString,r); + searchResults.add( Integer.toString(seqIndex) ); searchResults.add( Integer.toString( resIndex) ); searchResults.add( Integer.toString( (resIndex+searchString.length()-1) ) ); @@ -127,6 +128,8 @@ public class Finder extends GFinder resIndex++; break; } + + r=resIndex+1; } } if(!found) @@ -143,11 +146,18 @@ public class Finder extends GFinder for(int i=0; i