简体   繁体   English

自己的eclipse插件-插件之间共享数据

[英]Own eclipse plugin - sharing data between plugins

I would like to write small eclipse plugin for code estimation. 我想编写用于代码估算的小型eclipse插件。 At start I would like to use results shown in "problems" tab (warnings and errors) instead of writing next, own tool for code analysis. 开始时,我想使用“问题”选项卡(警告和错误)中显示的结果,而不是编写下一个自己的代码分析工具。 The question is: Is it possible to use data from one plugin in another? 问题是:是否可以使用另一个插件中的数据? I would be greatful for any examples or links to tutorials. 对于任何示例或教程链接,我将不胜感激。

Thank you in advance :) 先感谢您 :)

The objects in the Problems view are called 'markers' and are represented by the org.eclipse.core.resources.IMarker interface. “问题”视图中的对象称为“标记”,并由org.eclipse.core.resources.IMarker接口表示。

You get the markers defined on a file, folder or project by calling the findMarkers method on the IResource . 您可以通过调用IResource上的findMarkers方法来获得在文件,文件夹或项目上定义的标记。 You can ask for all types of marker or just specific types. 您可以要求所有类型的标记或仅特定类型的标记。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM