Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 712c2e7123629f9d445867a86545b3c68e5c22a3 (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
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.console;

/**
 * A pattern match listener delegate is notified of regular expression matches
 * in a text console. A delegate is contributed via the
 * <code>consolePatternMatcherListeners</code> extension point.
 * <p>
 * Clients contributing a console pattern match listener extension are intended
 * to implement this interface.
 * </p>
 * @see org.eclipse.ui.console.IPatternMatchListener
 * @see org.eclipse.ui.console.TextConsole
 * @since 3.1
 */
public interface IPatternMatchListenerDelegate {
	/**
	 * Notification that pattern matching will begin in the specified console.
	 * A pattern matcher is connected to only one console at a time.
	 *
	 * @param console the console in which pattern matching will be performed
	 */
	void connect(TextConsole console);

	/**
	 * Notification that pattern matching has been completed in the console
	 * this delegate was last connected to.
	 */
	void disconnect();

	/**
	 * Notification that a match has been found.
	 *
	 * @param event event describing where the match was found
	 */
	void matchFound(PatternMatchEvent event);
}

Back to the top