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 48495 - J2SE 5 Compliancy: wizard is not proposing creation of JDK 1.5 types
Summary: J2SE 5 Compliancy: wizard is not proposing creation of JDK 1.5 types
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-05 19:49 UTC by vbrabant
Modified: 2007-09-26 09:14 UTC (History)
3 users (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 vbrabant 2004-09-05 19:49:40 UTC
NB4.0 doesn't permits user to create a enum via
the wizard.
Comment 1 Jan Becicka 2004-09-06 06:52:13 UTC
Yes, we should add such template.
Comment 2 Jan Becicka 2004-09-06 08:03:53 UTC
Dusane, please provide an enum template + *description*.
proposed template:

/*
 * __NAME__.java
 *
 * Created on __DATE__, __TIME__
 */

package Templates.Classes;

/**
 *
 * @author  __USER__
 */
public enum Class {

}
Comment 3 Martin Matula 2004-11-11 16:09:23 UTC
We should add templates for enum and annotation type. Honzo, could you
do it?
Comment 4 Jan Pokorsky 2004-11-11 16:57:04 UTC
Sure, I could. Dusan, will you supply the stuff requsted by Jan B.?
Comment 5 vbrabant 2004-11-11 18:26:31 UTC
Just a stupid question ?
Why is target now 4.1 ?
Is it really not possible for 4.0 ?
It's only a template file to create.
(and proposed template is proposed in the issue)
No code to modify.
No wizard to create.

Or am I wrong ?
Comment 6 Jan Pokorsky 2004-11-11 18:34:14 UTC
see
http://www.netbeans.org/community/releases/40/high-resistance.html. It
is impossible to add new features to 4.0 now.
Comment 7 vbrabant 2004-11-11 19:33:01 UTC
That issue was created the 5 Septembre 2004.
The template was given the 6 Septembre 2004.
And now, 2 months later, you say that it can be delivered with NB4.0
because we are in High Resistance Mode ?
Come on. I really hope you are kidding.

Is creation of a template file really considered as a feature ?

It's only 
a) adding a plain text file in the good repository 
(org.netbeans.modules.java.resources.templates.Enum.template
and 
b) add an entry in the .properties file to have help
(org.netbeans.modules.java.Bundles.properties)

No lines of code is modified.

When we are un HRM, I can understand that no creation/modification of
.java files has to be done. Only Bug Fixing. 
But, is creation of a template file would be considered as Java code
enhancement ?
I think that creation of template files would be considered as
creation of Help pages. 

And creation of HTML Help pages are accepted even in High Resistance Mode.

Just my feeling.
Maybe I am totally wrong.
Comment 8 Martin Matula 2004-11-11 20:51:15 UTC
Vincent, I am sorry for this. This issue was assigned to a UI engineer
and got lost in the tons of defects we had to fix. As you can imagine,
defects have higher priority then issues marked as feature requests
(especially after the feature freeze). I am currently in process of
going through all the enhancement and feature requests and choosing
the ones we are going to address for 4.1. That's how I bounced to this
one.
You are right that it should be quite easy to fix this. It is a pity
this was not escalated sooner. But currently the process is that we
can only fix P2 and P1 defects. In addition, only defects escalated
before Nov. 10 are considered. Issues escallated after yesterday will
be addressed only if they are real showstoppers, since the code freeze
starts basically tomorrow evening.
Anyway, I will check whether there is any chance we will be able to
put this into 4.0 despite the above.
Comment 9 Jan Chalupa 2004-11-11 22:21:00 UTC
It's a pity, but it's really too late. :-(
Comment 10 Jan Pokorsky 2005-01-25 13:41:58 UTC
I am going to add the templates for enum and annotation type to the
main trunk. Jano could you update J2SE Project Type UI Spec with order
of templates and with description how to notify user that current JDK
platform is not jdk 1.5?
Comment 11 Jan Pokorsky 2005-02-01 15:11:40 UTC
I added templates + logic that notifies a user about wrong source
level (possibly platform) of the target project. Hopefully Jano will
update the spec soon.

/cvs/java/project/src/org/netbeans/modules/java/project/Bundle.properties
new revision: 1.26; previous revision: 1.25
/cvs/java/project/src/org/netbeans/modules/java/project/JavaTargetChooserPanel.java
new revision: 1.22; previous revision: 1.21
/cvs/java/project/src/org/netbeans/modules/java/project/layer.xml
new revision: 1.18; previous revision: 1.17
/cvs/java/project/src/org/netbeans/modules/java/project/resources/AnnotationType.html
initial revision: 1.1
/cvs/java/project/src/org/netbeans/modules/java/project/resources/AnnotationType.template
initial revision: 1.1
/cvs/java/project/src/org/netbeans/modules/java/project/resources/Enum.html
initial revision: 1.1
/cvs/java/project/src/org/netbeans/modules/java/project/resources/Enum.template
initial revision: 1.1
Comment 12 Quality Engineering 2007-09-20 09:50:59 UTC
Reorganization of java component