Skip to main content



      Home
Home » Newcomers » Newcomers » license statement header
license statement header [message #216001] Fri, 15 June 2007 05:58 Go to next message
Eclipse UserFriend
Originally posted by: ivana.func.nl

I want to add a license statement header to all the files in my project.
You know:
/**
* blabbla GPL bla
**/

Does anyone know how to do this in Eclipse (other then copy-pasting it to
every file by hand)?

thx
Re: license statement header [message #216028 is a reply to message #216001] Fri, 15 June 2007 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: spamgrube.mpaap.de

Ivana wrote:

> I want to add a license statement header to all the files in my project.
> You know:
> /**
> * blabbla GPL bla
> **/
>
> Does anyone know how to do this in Eclipse (other then copy-pasting it to
> every file by hand)?

"Window - Preferences - Java - Code Style"
Here choose "Automatically add comment to new methods and types"

"Window - Preferences - Java - Code Style - Code Templates"
Here edit "New Java files" and put your statement above the rest.

Greetings,
Michael
Re: license statement header [message #216034 is a reply to message #216028] Fri, 15 June 2007 08:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ivana.func.nl

Thank you!
Is there a way apply the code templates to existing files/projects?
Re: license statement header [message #216126 is a reply to message #216034] Fri, 15 June 2007 10:49 Go to previous message
Eclipse UserFriend
Ivana wrote:

> Thank you!
> Is there a way apply the code templates to existing files/projects?

Try Releng Tool's copyright tool. It is available from the download side
of each Eclipse SDK.

Dani
Previous Topic:Code/Content Assist work with third party help collection
Next Topic:Eclipse Search API
Goto Forum:
  


Current Time: Thu Jul 17 20:26:39 EDT 2025

Powered by FUDForum. Page generated in 0.08446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top