Console Pattern Match Listeners

Identifier:
org.eclipse.ui.console.consolePatternMatchListeners

Since:
3.1

Description:
Provides regular expression matching for text consoles. Pattern match listeners can be contributed to specific consoles by using an enablement expression. Listeners are notified as matches are found.

Configuration Markup:

<!ELEMENT extension (consolePatternMatchListener*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT consolePatternMatchListener (enablement)>

<!ATTLIST consolePatternMatchListener

id        CDATA #REQUIRED

class     CDATA #REQUIRED

regex     CDATA #REQUIRED

flags     CDATA #IMPLIED

qualifier CDATA #IMPLIED>


Examples:
The following is an example of a console pattern match listener extension point:

   <extension
         point="org.eclipse.ui.console.consolePatternMatchListeners">
      <consolePatternMatchListener
            class="com.example.ExampleConsolePatternMatcher"
            id="com.example.ExampleConsolePatternMatcher"
            regex=".*foo.*">
         <enablement>
            <test property="org.eclipse.ui.console.consoleTypeTest" value="exampleConsole"/>
         </enablement>
      </consolePatternMatchListener>
   </extension>
In the above example, the contributed console pattern matcher will be used for consoles with a type of "exampleConsole."

API Information:
Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.ui.console.IPatternMatchListenerDelegate.

Supplied Implementation:
The console plug-in provides a console type property tester for enablement expressions that tests the value of IConsole.getType(). The property tester's identifier is org.eclipse.ui.console.consoleTypeTest.


Copyright (c) 2000, 2005 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0