Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » how to get markers from document
how to get markers from document [message #1053739] Tue, 07 May 2013 12:55 Go to next message
Dana Klein is currently offline Dana Klein
Messages: 63
Registered: October 2012
Member
Hi, I have org.eclipse.jface.text.Document and i want to get from it or from my plugin workspace the markers on the current document.
if possible how can i do that?
Re: how to get markers from document [message #1058138 is a reply to message #1053739] Sun, 12 May 2013 12:36 Go to previous message
Dana Klein is currently offline Dana Klein
Messages: 63
Registered: October 2012
Member
You need to get a resource reference (IResource) and then:

resource.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);
Previous Topic:SWTException: Widget is disposed in TableViewer with ObservableListContentProvider
Next Topic:Implementing displaying attached javadoc
Goto Forum:
  


Current Time: Thu Sep 18 06:03:51 GMT 2014

Powered by FUDForum. Page generated in 0.03055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software