Solved

Automatically insert header in new java class

Posted on 2010-11-09
2
495 Views
Last Modified: 2012-05-10
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.
 *
 */
0
Comment
Question by:allelopath
  • 2
2 Comments
 
LVL 7

Expert Comment

by:rodness
ID: 34097539
Go to Eclipse Preferences, Java, Code Style, Code Templates.

Edit the Code template for New Java Files accordingly.
0
 
LVL 7

Accepted Solution

by:
rodness earned 500 total points
ID: 34097549
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 84
Checkbox and ListView in Android Layout 4 65
egit plugin on eclipse 8 63
How to execute a Python program and gather return output in Java 2 30
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question