Feature added to group search results
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:34:48 +0000 (15:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:34:48 +0000 (15:34 +0000)
src/jalview/gui/Finder.java

index 58e2993..6b8df4b 100755 (executable)
@@ -128,14 +128,17 @@ public class Finder extends GFinder
             SequenceFeature sf = new SequenceFeature(textinput.getText(),\r
                 "Search Results", null,\r
                 searchResults.getResultStart(i),\r
-               searchResults.getResultEnd(i));\r
+               searchResults.getResultEnd(i),\r
+               "Search Results");\r
 \r
             ap.seqPanel.seqCanvas.getFeatureRenderer().addNewFeature(\r
-                textinput.getText(), new Color(60,160,115));\r
+                textinput.getText(), new Color(60,160,115),\r
+                    "Search Results");\r
 \r
             seq.getDatasetSequence().addSequenceFeature(sf);\r
         }\r
 \r
+        ap.seqPanel.seqCanvas.getFeatureRenderer().findAllFeatures();\r
         ap.alignFrame.showSeqFeatures.setSelected(true);\r
         av.setShowSequenceFeatures(true);\r
         ap.highlightSearchResults(null);\r