Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How can I extend JDT's annotation validation mechanism?
icon5.gif  How can I extend JDT's annotation validation mechanism? [message #647864] Mon, 10 January 2011 08:29 Go to next message
Max Raskin is currently offline Max RaskinFriend
Messages: 2
Registered: January 2011
Junior Member
Hi, I'm trying to write a plugin that'll allow me to issue an error
on the project when a certain parameter within a custom annotation
is invalid.

Thus preventing compilation. Like when @Override annotation
fails the compilation is prevented.

which extension-point should I use?


Cheers, Max.
Re: How can I extend JDT's annotation validation mechanism? [message #648089 is a reply to message #647864] Tue, 11 January 2011 08:19 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
You could write an annotation processor. Look at http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. jdt.doc.isv/guide/jdt_apt_getting_started.htm
Re: How can I extend JDT's annotation validation mechanism? [message #648090 is a reply to message #648089] Tue, 11 January 2011 08:22 Go to previous message
Max Raskin is currently offline Max RaskinFriend
Messages: 2
Registered: January 2011
Junior Member
Thanks, found it the other day,

to anyone who might want to do the same here's some info
about APT (Annotation Proccesing Toolkit) in eclipse:
http://www.eclipse.org/jdt/apt/index.html

And a great tutorial with practice-exercises from Eclipsecon2007
about APT can be found here:
http://www.eclipse.org/jdt/apt/eclipsecon2007.zip

Cheers, Max.
Previous Topic:Java Swing bug or error in program??
Next Topic:[SOLVED] How to synchronize a copy project in the background using JavaElementDeltas?
Goto Forum:
  


Current Time: Tue Apr 23 08:10:54 GMT 2024

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

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

Back to the top