Automatically insert header in new java class

How do I setup Eclipse to automatically insert a header when I create a new Java class?
e.g. I would like something like this at the top of every new Java class file:
/*
 * Copyright 2010 Widgets Inc.,
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of Widgets Inc.
 *
 */
LVL 1
allelopathAsked:
Who is Participating?
 
rodnessConnect With a Mentor Commented:
Sorry, my bad.  That was COMMENTS Template, not Code template:



Go to Eclipse Preferences, Java, Code Style, Code Templates.

Edit the COMMENTS template for FILES accordingly.
0
 
rodnessCommented:
Go to Eclipse Preferences, Java, Code Style, Code Templates.

Edit the Code template for New Java Files accordingly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.