KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > search > ISearchRequestor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.ui.search;
12
13 import org.eclipse.search.ui.text.Match;
14
15 /**
16  * A callback interface to report matches against. This class serves as a bottleneck and minimal interface
17  * to report matches to the Java search infrastructure. Query participants will be passed an
18  * instance of this interface when their <code>search(...)</code> method is called.
19  * <p>
20  * This interface is not intended to be implemented by clients.
21  * </p>
22  *
23  * @since 3.0
24  */

25 public interface ISearchRequestor {
26     /**
27      * Adds a match to the search that issued this particular {@link ISearchRequestor}.
28      * @param match The match to be reported.
29      */

30     void reportMatch(Match match);
31 }
32
Popular Tags