How to find the number of errors(marked in red) in an eclipse project programmatically?
How to find the number of errors(marked in red) in an eclipse project programmatically?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two major steps:
You need an access to Eclipse API – write your own plugin for Eclipse or use a scripting plugin like Groovy Monkey
Using Eclipse API get problem markers for resource you intrested in – check this link: How to work with resource markers
If you want to retrieve only JDT error markers you should write something like this: