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 89238 - Main class generated during creation of new project does not respect templates
Summary: Main class generated during creation of new project does not respect templates
Status: VERIFIED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-13 16:15 UTC by Jiri Prox
Modified: 2007-09-26 09:14 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 Jiri Prox 2006-11-13 16:15:01 UTC
NetBeans IDE Dev (Build 200611121900)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

Main class generated while creating new project cannot be customized by template
for java class. It looks always the same.
Comment 1 Milan Kubec 2006-11-21 13:16:07 UTC
I'm not able to reproduce in 061120. I tried to open template for Java Class and
Java Main Class from Template Manager and modified them and saved them. Then I
created new class and main class from template and both were according to
modified templates. Could you try to reproduce? Thanks.
Comment 2 Tomas Zezula 2006-11-21 13:45:11 UTC
Maybe it's a problem of the properties like _USER_, it seems that they do not
work (JavaDataObject problem). The J2SEProjectGenerator code uses the main class
template:
Repository.getDefault().getDefaultFileSystem().findResource(
"Templates/Classes/Main.java" );

It isn't j2seproject issue.
Comment 3 Jiri Prox 2006-11-21 14:21:56 UTC
Sorry, my fault, I changed only template for common class not for the main class.
Comment 4 Jiri Prox 2007-08-03 16:43:08 UTC
v.