How to write consolePatternMatchListener extension point?

I am running an external tool from a scala plug-in project. The tool can generate errors / warnings on certain conditions that I would like to make clickable in order to be able to go to the point of occurrence. The error is a message of the following syntax:

<absolute_file_path>:<line_no>:ERROR: <message> 

I searched and realized that I needed to add the extension point consolePatternMatchListener and get the following example:

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

Since I'm very new to eclipse plugin development, I would like to know how to do this by writing the above extension in plugin.xml-> Extension Point

+4
source share
1 answer

You may find this tutorial useful: Eclipse Extension Points and Extensions

0
source

Source: https://habr.com/ru/post/1445002/


All Articles