gpt4 book ai didi

scala - 如何编写 consolePatternMatchListener 扩展点?

转载 作者:行者123 更新时间:2023-12-01 06:37:55 25 4
gpt4 key购买 nike

我正在从 Scala 插件项目运行外部工具。该工具可能会在某些条件下生成错误/警告,我希望将其设置为可点击,以便能够跳转到发生点。错误消息是以下语法:

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

我搜索了一下,了解到需要添加一个consolePatternMatchListener扩展点,得到如下示例:
<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>

由于我对eclipse插件开发很陌生,我想知道如何在plugin.xml->Extension Point中编写上述扩展

最佳答案

您可能会发现本教程很有用:Eclipse Extension Points and Extensions

关于scala - 如何编写 consolePatternMatchListener 扩展点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13303861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com