This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257920 - Support editing C/C++ License Headers from Options
Summary: Support editing C/C++ License Headers from Options
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 10:11 UTC by ilia
Modified: 2016-02-27 02:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ilia 2016-02-10 10:11:36 UTC
There is no possibility to change license headers from options (when creating a new file.)

If user don't need this
-------------------------------
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   newfile.h
 * Author: ilia
 *
 * Created on February 10, 2016, 12:54 PM
 */
-------------------------------
the most common scenario is to select and remove this lines. As there is no way to do it from UI users just don't know how to change it and remove them every time manually. There is a way to change it in project.properties, but I haven't found any documentation of this feature.

See https://forums.netbeans.org/topic65277.html
Comment 1 soldatov 2016-02-10 10:34:28 UTC
(In reply to ilia from comment #0)
> There is no possibility to change license headers from options (when
> creating a new file.)
Usually I remove all code Licenses|Default License file
Comment 2 Alexander Simon 2016-02-19 15:42:53 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/f0b8434bb120
Comment 3 Quality Engineering 2016-02-20 03:19:46 UTC
Integrated into 'main-silver', will be available in build *201602200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f0b8434bb120
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257920 Support editing C/C++ License Headers from Options
Comment 4 Alexander Simon 2016-02-25 09:28:27 UTC
The fix added additional dependency to org.netbeans.modules.project.ant module.
The additional dependency breaks some suits build on the cnd platform.

The license dialog should be duplicated in make project module to avoid unacceptable dependency.
Comment 5 Alexander Simon 2016-02-25 09:48:26 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/650a08685b78
Comment 6 Quality Engineering 2016-02-26 02:08:32 UTC
Integrated into 'main-silver', will be available in build *201602260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/650a08685b78
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257920 Support editing C/C++ License Headers from Options
- copy license panel in make project to avoid additional dependency
Comment 7 Quality Engineering 2016-02-27 02:35:03 UTC
Integrated into 'main-silver', will be available in build *201602270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/248a59440dab
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257920 Support editing C/C++ License Headers from Options
- fix i18n