1 package org.hibernate.eclipse.console.wizards; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 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 found; 11 12 public CollectingSearchRequestor() { 13 found= new ArrayList (); 14 } 15 16 public void acceptSearchMatch(SearchMatch match) { 17 found.add(match); 18 } 19 20 public List getResults() { 21 return found; 22 } 23 } 24 25 26 | Popular Tags |