Bug 208801 - New files by default start with "To change this template..."
New files by default start with "To change this template..."
Status: RESOLVED WONTFIX
Product: projects
Classification: Unclassified
Component: Generic Projects UI
7.1
All All
: P3 with 2 votes (vote)
: 7.4
Assigned To: Milos Kleint
issues@projects
: UI, UI_REVIEW
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-23 15:27 UTC by Geertjan Wielenga
Modified: 2013-05-28 11:09 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2012-02-23 15:27:46 UTC
Please remove the meaningless text from each and every template everywhere please:

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Comment 1 Jan Lahoda 2012-02-23 15:36:29 UTC
The test is in:
projectui/src/org/netbeans/modules/project/ui/resources/license-default.txt
Comment 2 Geertjan Wielenga 2012-02-23 15:38:30 UTC
The world would be happy if the text were to be deleted.
Comment 3 Jesse Glick 2012-02-27 23:49:55 UTC
The text is not in the template, it is in the "default" license header used when the project does not specify a license. It is telling you how to change that license header. Of course better would be for the IDE to not insert such text in the actual file but guide you to change the header somehow. Perhaps a notification could appear in the status line with a link to either

1. Edit the default license to say something else. Of course that only makes sense if every file you create should have the same header. Which could be empty if you like, or some corporate boilerplate, etc.

or

2. Pick a different license for the current project. This means adding a license picker GUI to each project type, which we probably need anyway. You might still need to open Tools > Templates in case your desired header text is not yet listed there.
Comment 4 Milos Kleint 2013-03-13 15:14:25 UTC
Just a few notes on constraints:
1. the text is part of a license header include
2. some files created with the header template are not customizable themselves, eg. stuff from apisupport.
3. in latest dev builds it's possible to change the license header template in project customizer of j2se and maven projects

geertjan, do you have a suggestion for improvement of the text message? that's the only change I'm willing to do right now
Comment 5 Geertjan Wielenga 2013-03-13 15:16:13 UTC
Maybe change it to a space? That's one character, still, a character.
Comment 6 Milos Kleint 2013-03-13 15:22:40 UTC
(In reply to comment #5)
> Maybe change it to a space? That's one character, still, a character.

No, that's something everyone can do eventually after editing the default template, but it should not be the default content. The default content should point the user to the right place to make the change nothing more.

(unless you want to bring it up to the ui review team - or whatever the name of that group is right now)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo