Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nattable-dev] Eclipse license headers

Hi all,

Dirk added missing EPL license headers to newly added files to resolve
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387813. He also mentions
in the bug comment how to set up your Eclipse code templates so that
it automatically adds the appropriate headers. We should all do this.
I'm reprinting Dirk's comment here with some additional detail on how
to set your user name:


Set your user name in your eclipse.ini file by adding -Duser.name=Your
Name somewhere after -vmargs

Enable Code Templates in Eclipse so the EPL license header is created
automatically when creating new files. You can do this in the
preferences dialog:

Window > Preferences > Java > Code Style > Code Templates

In the Comments section select Files and Edit...
In the dialog that opens insert the license information as described
here: http://eclipse.org/legal/copyrightandlicensenotice.php

/*******************************************************************************
 * Copyright (c) ${date} ${user} and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    ${user} - initial API and implementation
 *******************************************************************************/

Don't forget to enable "Automatically add comments for new methods and types"


Thanks,
Edwin


Back to the top