Sunday, June 14, 2009

Eclipse: Fixing Copyright (Copyright Tool)

It's possible to fix (or to set) the Copyright notice in the beginning of the file.
The plugin that fixes copyrights is not included by default in the distribution, but it can be downloaded using the Eclipse update site.
It's called "Eclipse Releng Tools".

The copyright header is set using Window -> Prefernces -> Copyright Tool.
In order to set this header for the whole project, switch to the "Resources" perspective and select "Advanced Fix Copyrights".


Alexander Lipatov said...

please describe how this tool fix copyright or provide screenshot(s) :-)

Tarlog said...

Hi Alexander,

the tool places the copyright header before the package declaration of the java files.

It's configurable via properties what will be the header's content and if the existing headers should be replaced.