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 242068 - Introduce add license header to current file - plugin available
Summary: Introduce add license header to current file - plugin available
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-18 19:45 UTC by gualtiero65
Modified: 2016-07-01 18:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gualtiero65 2014-02-18 19:45:58 UTC
License header configuration in the project properties is applied on new files only.

It would be nice to have the possibility 

1. to add license header when the current file in the editor does not have any
2. to replace the existing license header in the current file with the project configured one
3. to have a hint warning when a file does not have any license
Comment 1 nhoffmann 2014-02-19 13:04:05 UTC
The License Changer plugin hosted at the <a href="http://plugins.netbeans.org/plugin/17960/license-changer">NetBeans plugin page</a> already provides a NetBeans compliant way of batch-adding and/or changing the license header of multiple source files and allows selection and preview of license header templates installed in the IDE. Maybe it would make sense to extend the plugin with the desired functionality so that it might find its way into the IDE at some point in the future.
Comment 2 gualtiero65 2014-02-20 08:56:52 UTC
The plugin seems interesting even if it does not cover all file types. I think I will go for it.

Any way it is not intuitive that a plugin replace an already existing NetBeans functionality. Plugins usually add missing functionality or enhance the existing one.

If the license is set first in the project properties (standard NetBeans way), the plugin will not recognize the setting and ask user to select/browse the license file again.

Of course plugin can be improved but it would be much better to integrate the functionality in NetBeans.