|
|
Re: Eclipse custom errors [message #515023 is a reply to message #514995] |
Wed, 17 February 2010 14:08 |
No real name Messages: 18 Registered: February 2010 |
Junior Member |
|
|
uuh yeah im talking about java, i just need to know which classes i can use for checking code on the fly and how to add my own code checks to them. Like say if an annotation can only be placed on a getter and not on a setter, there should appear a warning or error message when this annotation is set to a setter.
Like code quality checkers do, just put error/warning messages in the problem view of eclipse, only i dont know if they use custom errors and warnings or the build in static ones in IProblem interface. I want to make custom ones.
[Edit] Uh one more thing, im looking into eclipse.jdt.core to try and find it out, but im not sure if im looking in the right spot
Greetz
[Updated on: Wed, 17 February 2010 14:12] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Eclipse custom errors [message #515217 is a reply to message #514969] |
Thu, 18 February 2010 08:46 |
No real name Messages: 18 Registered: February 2010 |
Junior Member |
|
|
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 08:47] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11138 seconds