Eclipse Code Template

To work with an eclipse IDE you may use the code template below, which includes the license comment, the log4j logger import, and the class comment (@author, @creation, @version).

To use it you have to:

  1. download it! FOR DOWNLOADING CLICK LINK BELOW, THEN SCROLL DOWN AND CLICK LINK "ORIGINAL FORMAT" !!
  2. open eclipse preferences (MS Windows: window-preferences; MAC: eclipse-preferences)
  3. goto Java - Code Style - Code Templates
  4. import the template by using Import...
    • don't forget to check the "Generate comments" check box in the "New Java Class" wizard or
    • OR even better set this as default for the new class wizard by checking Window > Preferences... > Java > Code Style > templates > Automatically add comments...

Attachments