4

I am running an external tool from a scala plug-in project. The tool might generate errors/warnings on certain conditions, which I would like to make clickable, to be able to jump to point of occurence. The error is message is of following syntax:

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

I searched and understood that a consolePatternMatchListener extension point needs to be added and got 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 am very new to eclipse plugin development, I wanted to know how to go about writing the above extension in plugin.xml->Extension Point

1 Answers1

0

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

jarodeells
  • 356
  • 1
  • 5
  • 14