Mar 082010
 

Q How can I change the class header in Eclipse to add a company copyright blurb?
A The menu option Window | Preferences | Java | Code Style | Code Templates | Code | New java file shows:

    ${filecomment}

      ${package_declaration}

        ${typecomment}

          ${type_declaration}

            The text that gets substituted for ${filecomment} can be edited via Window | Preferences | Java | Code Style | Code Templates | Comments | Files. When editing the template you have the option in the GUI to insert variables and you can see which ones are available.

              This header will only shows up in new classes after choosing “Generate comments” in the new Java class wizard.