From 587fef46179c0daf041e240c10b03ac5910718a8 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 10 Jan 2005 17:39:32 +0000 Subject: [PATCH] Displays number of matches found in search --- src/jalview/gui/Finder.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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