1.1 --- a/tasklist.copyright/src/org/netbeans/modules/tasklist/copyright/AddCopyrightPerformer.java Sat Jul 01 08:55:56 2006 +0000
1.2 +++ b/tasklist.copyright/src/org/netbeans/modules/tasklist/copyright/AddCopyrightPerformer.java Sat Jul 01 09:13:12 2006 +0000
1.3 @@ -1,3 +1,21 @@
1.4 +/*
1.5 + * The contents of this file are subject to the terms of the Common Development
1.6 + * and Distribution License (the License). You may not use this file except in
1.7 + * compliance with the License.
1.8 + *
1.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
1.10 + * or http://www.netbeans.org/cddl.txt.
1.11 + *
1.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
1.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
1.14 + * If applicable, add the following below the CDDL Header, with the fields
1.15 + * enclosed by brackets [] replaced by your own identifying information:
1.16 + * "Portions Copyrighted [year] [name of copyright owner]"
1.17 + *
1.18 + * The Original Software is NetBeans. The Initial Developer of the Original
1.19 + * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
1.20 + * Microsystems, Inc. All Rights Reserved.
1.21 + */
1.22 package org.netbeans.modules.tasklist.copyright;
1.23
1.24 import java.awt.BorderLayout;
1.25 @@ -273,19 +291,26 @@
1.26 }
1.27
1.28 private String getSampleLicense() {
1.29 - return "YOUR LICENSE HERE. For example, here's the Sun Public License\n" +
1.30 - "used by the tasklist modules:\n\n" +
1.31 - " Sun Public License Notice\n\n" +
1.32 - "The contents of this file are subject to the Sun Public License\n" +
1.33 - "Version 1.0 (the \"License\"). You may not use this file except in\n" +
1.34 - "compliance with the License. A copy of the License is available at\n" +
1.35 - "http://www.sun.com/\n\n" +
1.36 - "The Original Code is NetBeans. The Initial Developer of the Original\n" +
1.37 - "Code is Sun Microsystems, Inc. Portions Copyright 1997-" +
1.38 + return "YOUR LICENSE HERE. For example, here's the CDDL\n" +
1.39 + "used by the tasklist modules:\n\n" +
1.40 + "The contents of this file are subject to the terms of the Common Development\n" +
1.41 + "and Distribution License (the License). You may not use this file except in\n" +
1.42 + "compliance with the License.\n" +
1.43 + "\n" +
1.44 + "You can obtain a copy of the License at http://www.netbeans.org/cddl.html\n" +
1.45 + "or http://www.netbeans.org/cddl.txt.\n" +
1.46 + "\n" +
1.47 + "When distributing Covered Code, include this CDDL Header Notice in each file\n" +
1.48 + "and include the License file at http://www.netbeans.org/cddl.txt.\n" +
1.49 + "If applicable, add the following below the CDDL Header, with the fields\n" +
1.50 + "enclosed by brackets [] replaced by your own identifying information:\n" +
1.51 + "\"Portions Copyrighted [year] [name of copyright owner]\"\n" +
1.52 + "\n" +
1.53 + "The Original Software is NetBeans. The Initial Developer of the Original\n" +
1.54 + "Software is Sun Microsystems, Inc. Portions Copyright 1997-" +
1.55 new SimpleDateFormat("yyyy").format(new Date()) +
1.56 " Sun\n" +
1.57 "Microsystems, Inc. All Rights Reserved.\n\n\n";
1.58 -
1.59 }
1.60 /** Returns true if the given line (starting at str+index) begins
1.61 * with the given comment prefix (after an optional range of whitespace) */