blob: a2ca63270a1ff819ccd3d10e1d1eeace0d603325 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Common Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.search.ui;
/**
* <p>A listener for changes to the set of search queries. Queries are added by running
* them via {@link org.eclipse.search.ui.NewSearchUI#runQuery(ISearchQuery) NewSearchUI#runQuery(ISearchQuery)} or
* {@link org.eclipse.search.ui.NewSearchUI#runQueryInForeground(org.eclipse.jface.operation.IRunnableContext,ISearchQuery) NewSearchUI#runQueryInForeground(IRunnableContext,ISearchQuery)}</p>
* <p>The search UI determines when queries are rerun, stopped or deleted (and will notify
* interested parties via this interface). Listeners can be added and removed in the {@link org.eclipse.search.ui.NewSearchUI NewSearchUI} class.
* </p>
* <p>Clients may implement this interface.</p>
*
* @since 3.0
*/
public interface IQueryListener {
/**
* Called when an query has been added to the system.
*
* @param query the query that has been added
*/
void queryAdded(ISearchQuery query);
/**
* Called when a query has been removed.
*
* @param query the query that has been removed
*/
void queryRemoved(ISearchQuery query);
/**
* Called before an <code>ISearchQuery</code> is starting.
* @param query the query about to start
*/
void queryStarting(ISearchQuery query);
/**
* Called after an <code>ISearchQuery</code> has finished.
* @param query the query that has finished
*/
void queryFinished(ISearchQuery query);
}
|