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 08: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 08: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 Jul 31 21:55:43 EDT 2014

Powered by FUDForum. Page generated in 0.02088 seconds