Eclipse plugin, custom errors
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 annotation placed on a setter while it only works on a getter, the compiler says its ok, runtime = error.
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?
About (a): What i did find out is that i probably need the compilationParticipant reconcile function, that means i also need a reconcileContext in which i can put my problems, which are CategorizedProblems and implement the IProblem interface. So far so good.
About (b): What i dont know is how to get the compiler to find the error in the code and generate the IProblem (what i said, linenumber, sourcefile and on). I've found out about Markers, but i dont know if that will work just fine? I dont quite get the link yet. So can anybody help me?
Greetz and thanks in advance.