Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to prevent running an operation on compilation error
How to prevent running an operation on compilation error [message #523483] Fri, 26 March 2010 15:17 Go to next message
QIU????????  is currently offline QIU???????? Friend
Messages: 7
Registered: July 2009
Junior Member
Hi all,

I want to prevent running an operation when a project containing some compilation errors or some infos (for instance, messages in Problem view).
Can I get these error information, and how?

Thanks in advance,
Mengjie
Re: How to prevent running an operation on compilation error [message #523540 is a reply to message #523483] Fri, 26 March 2010 18:10 Go to previous message
QIU????????  is currently offline QIU???????? Friend
Messages: 7
Registered: July 2009
Junior Member
I found one solution.

Use IResource.findMarkers(IMarker.PROBLEM, true, DEPTH_INFINITE);
then MarkerUtilities.getSeverity(marker) to get the severity.

That solve my problem Razz .
Previous Topic:Plugins Access restriction
Next Topic:How to prevent running an operation on compilation error
Goto Forum:
  


Current Time: Sat Apr 20 02:48:51 GMT 2024

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

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

Back to the top