New Java Annotation Wizard

The Opens the New Java Annotation Type wizard New Java Annotation Type wizard helps you to create a new Java Annotation in a Java project.

Java Annotation Options
Option Description Default
Source folder Enter a source folder for the new annotation. Either type a valid source folder path or click Browse to select a source folder via a dialog. The source folder of the element that was selected when the wizard has been started.
Package Enter a package to contain the new annotation. You can select either this option or the Enclosing Type option, below. Either type a valid package name or click Browse to select a package via a dialog. The package of the element that was selected when the wizard has been started. If a source folder was selected which contains exactly one package then that package is used. If the source folder does not contain any package then the project name is used if it is a valid package name.
Enclosing type Select this option to choose a type in which to enclose the new annotation. You can select either this option or the Package option, above. Either type a valid name in the field or click Browse to select a type via a dialog. The type or the primary type of the compilation unit that was selected when the wizard has been started or <blank>
Name Type a name for the new annotation. <blank>
Modifiers

Select one or more access modifiers for the new annotation.

  • Either public, package, private, or protected (private and protected are only available if you specify an enclosing type)
public
Add @Retention When selected, the wizard adds a @Retention annotation with the selected RetentionPolicy to the new annotation. Do not add the annotation
Add @Target When selected, the wizard adds a @Target annotation with the selected ElementTypes to the new annotation. The available ElementTypes depend on the source compliance level of the selected project. Do not add the annotation
Add @Documented When selected, the wizard adds a @Documented annotation to the new annotation. Do not add the annotation
Do you want to add comments? When selected, the wizard adds comments to the new annotation where appropriate. Do not add comments
File actions