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 252520 - Header for Java class in a platform application is misleading
Summary: Header for Java class in a platform application is misleading
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 06:55 UTC by cezariusz
Modified: 2015-05-21 09:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
License Customizer (55.63 KB, image/png)
2015-05-21 09:52 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-05-21 06:55:22 UTC
Product Version: NetBeans IDE Dev (Build 201505160001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

I've created a brand new Platform Application, then a module, and the a Java class in the module. The header in the file says:

/*
 * 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.
 */

1. There is no "License Headers" in the Project Properties.
2. I went to the Tools | Templates. First I checked "Module Development" templates, but I cannot edit any of them, and there is no template for Java class. So I opened the regular template for a Java Class, and what am I supposed to do there:

<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">

How to change the header text? How to change the license? Where the ${project.licensePath} comes from in a platform module?
Comment 1 Tomas Zezula 2015-05-21 09:51:39 UTC
The api support project should provide the License Customizer as for example J2SE Project does, see attached screenshot of J2SE Project license customier.
Comment 2 Tomas Zezula 2015-05-21 09:52:26 UTC
Created attachment 153784 [details]
License Customizer