TextConsole
, and is notified when its pattern has been matched to contents in that console. A pattern match listener can be registered with a console programmatically or via the consolePatternMatchListeners
extension point. Following is an example console pattern match listener extension definition. <extension point="org.eclipse.ui.console.consolePatternMatchListeners"> <consolePatternMatchListener id="com.example.ConsolePatternMatcher" regex=".*foo.*" class="com.example.ConsolePatternMatcher"> </consolePatternMatchListener> </extension> Attributes are specified as follows:
id
- a unique identifier for the pattern match listenerregex
- regular expression to matchclass
- fully qualified name of the Java class implementing org.eclipse.ui.console.IPatternMatchListenerDelegate
Optionally a qualifier
attribute may be specified to improve performance of regular expression matching. A qualifier specifies a simple regular expression used to qualify lines for the search. Lines that do not contain the qualifier are not considered.
Optionally an enablement
expression may be provided to specify which console(s) a pattern matcher should be contributed to.
Clients may implement this interface directly if registering a pattern match listener with a text console programmatically. Clients contributing a pattern match listener via an extension implement IPatternMatchListenerDelegate
instead.
|
|