1 11 package org.eclipse.search.internal.core.text; 12 13 import java.lang.reflect.InvocationTargetException ; 14 15 import org.eclipse.core.resources.IResourceProxy; 16 import org.eclipse.core.runtime.CoreException; 17 18 22 public class FileMatchCollector implements IMatchCollector { 23 private ITextSearchResultCollector fCollector; 24 private IResourceProxy fProxy; 25 26 public FileMatchCollector(ITextSearchResultCollector collector, IResourceProxy proxy) { 27 fCollector= collector; 28 fProxy= proxy; 29 } 30 31 public void accept(String line, int start, int length, int lineNumber) throws InvocationTargetException { 32 try { 33 fCollector.accept(fProxy, line, start, length, lineNumber); 34 } catch (CoreException e) { 35 throw new InvocationTargetException (e); 36 } 37 } 38 } 39 | Popular Tags |