Console Pattern Match Listeners

org.eclipse.ui.console.consolePatternMatchListeners

3.1

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.

<!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>


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

<extension point=

"org.eclipse.ui.console.consolePatternMatchListener"

>

<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."

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

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.