Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从我的文档(org.eclipse.jface.text.Document)或我的插件工作区中获取文档上发生的错误列表,可以在 eclipse 的 Markers 视图中找到,如果可能的话完毕?
您需要获取资源引用 ( IResource),然后:
IResource
resource.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);