[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Annotations in Eclipse (Europa)

Hi David,

Did you try
	Windows->Preferences->Java->Compiler	CompilerComplianceLevel

Charlie

David Goodenough wrote:

I am trying to use annotations in Eclipse, and I am stuck.

I have a workplace with a project within which I have defined a couple of annotation processors, the annotation classes, and some classes which
use the annotations. I have made sure that I have started Eclipse with
a Version 6 JVM (a Sun one) and I have enabled annotation processing for
this project. But nothing happens, and the processor is never invoked
(as far as I can tell - at least there are no errors and nothing gets
generated).


I did come across a reference to having to enable something specific to
allow new classes to be generated while I am editing so that new classes
can be generated by annotations and then referenced in the class I am
editing, but I do not understand exactly what I am supposed to do to enable
this.  The option is apparently enableTypeGenerationInEditor, and so I set
this to true in the processor options on the annotations processing property
page for the project.

Does anyone have a worked example of writing an annotation processor in
Eclipse, and then using it - I guess I am missing some simple stage in the process.


David