Eclipse custom errors [message #514969] |
Wed, 17 February 2010 06:26  |
Eclipse User |
|
|
|
Hello all,
Im working on a plugin for eclipse, and i want to be able to make custom errors for, for example, annotations that are misplaced.
So basically i want to see the error in the problem view in eclipse, now ive been looking around on how to do that, and i have found out i need at least the IProblem interface for creating the errors. The thing i need is how do i check my code for wrong annotations so i can create the appropriate error? Ive been looking into the eclipse compiler but i cant seem to find out how it works.
Anybody have some proper information about how the eclipse compiler works and how i can use it to detect my own custom errors?
Thanks in advance,
Michiel
|
|
|
|
|
|
|
|
|
|
|
|
Re: Eclipse custom errors [message #515217 is a reply to message #514969] |
Thu, 18 February 2010 03:46   |
Eclipse User |
|
|
|
Bump, still dont have the answer, lemme try and explain it once more 
What i want is to make my own custom problems, get them detected by the compiler and show them in the problems view. Now the custom errors can be anything like a misplaced annotation (I have some that throw runtime errors when misplaced, but code gets compiled).
I somehow need the compiler to check for these custom errors, thing is i dont know how to:
a: Create the general errors (Thats in setting the message and stuff, the icon).
b: How to analyze the code finding the errors and fill in things like line number, filename and stuff.
Does anybody have a simple example of how to do this?
I have done some research but i just cant tie the ends together, or im looking in the wrong spot. As you can read in my previous posts.
Ive checked some open source code analyzers but that didnt quite work, most of the code is hidden in jars.
Greetz
[Updated on: Thu, 18 February 2010 03:47] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09996 seconds