Solved

Automatically insert header in new java class

Posted on 2010-11-09
2
493 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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)
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now