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.
|Summary:||Introduce add license header to current file - plugin available|
|Component:||-- Other --||Assignee:||Milutin Kristofic <mkristofic>|
|Issue Type:||ENHANCEMENT||Exception Reporter:|
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.