| /******************************************************************************* |
| * Copyright (c) 2000, 2007 IBM Corporation and others. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| |
| *******************************************************************************/ |
| package org.eclipse.dltk.ui.search; |
| |
| import org.eclipse.search.ui.text.Match; |
| |
| |
| /** |
| * A callback interface to report matches against. This class serves as a bottleneck and minimal interface |
| * to report matches to the Script search infrastructure. Query participants will be passed an |
| * instance of this interface when their <code>search(...)</code> method is called. |
| * <p> |
| * This interface is not intended to be implemented by clients. |
| * </p> |
| * |
| * |
| */ |
| public interface ISearchRequestor { |
| /** |
| * Adds a match to the search that issued this particular {@link ISearchRequestor}. |
| * @param match The match to be reported. |
| */ |
| void reportMatch(Match match); |
| } |