KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > console > wizards > CollectingSearchRequestor


1 package org.hibernate.eclipse.console.wizards;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import org.eclipse.jdt.core.search.SearchMatch;
7 import org.eclipse.jdt.core.search.SearchRequestor;
8
9 public class CollectingSearchRequestor extends SearchRequestor {
10     private List JavaDoc found;
11
12     public CollectingSearchRequestor() {
13         found= new ArrayList JavaDoc();
14     }
15     
16     public void acceptSearchMatch(SearchMatch match) {
17         found.add(match);
18     }
19
20     public List JavaDoc getResults() {
21         return found;
22     }
23 }
24
25
26
Popular Tags