Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 026f22233f676c8ab723a54a1399c6eedc53bed9 (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, 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.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
     */
    public void connect(TextConsole console);
    
    /**
     * Notification that pattern matching has been completed in the console
     * this delegate was last connected to.
     */
    public void disconnect();
    
    /**
     * Notification that a match has been found.
     * 
     * @param event event describing where the match was found
     */
    public void matchFound(PatternMatchEvent event);
}

Back to the top