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 50515 - New Java Class wizard should allow specifying a base class
Summary: New Java Class wizard should allow specifying a base class
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-16 17:05 UTC by moizd
Modified: 2007-01-10 16:25 UTC (History)
0 users

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 moizd 2004-10-16 17:05:26 UTC
The new java class wizard should allow specifying
a base class and/or interface(s). import
statements should be added accordingly. 

Here's what the class wizard should have:
1. Edit box for specifying the FQ base class name.
2. Next to it a [...] button for bringing up a
list of classes from which you can pick a base
class. You should be able to filter out classes
using wildcards.
3. A List of interfaces to implement. where you
can add interfaces to be implemented.

The class wizard then creates the necessary method
stubs, also, so that the class compiiles after
creation.
Comment 1 Martin Matula 2004-10-17 15:32:57 UTC
Looks like a request for enhancement rather then a defect.
Comment 2 Jan Pokorsky 2004-10-18 14:49:34 UTC
Why cannot you use the editor for these purposes? IMO code completion
+ Tools/Override Methods or Tools/Synchronize is what you need to
achieve your usecase.

We want to keep the wizard simple as much as possible and do not
double the editor functionality. This was the main reason why we
simplefied it in NB 3.6.
Comment 3 moizd 2004-10-18 19:03:38 UTC
Yes, I believe I can. That's because I was looking under the Edit menu
and did not find those functions. I believe these functions belong to
the Edit menu. IMHO, any function that directly modifies the file open
 in the editor belongs to the edit menu. Functions that do not modify
the file in the editor should be moved to a differnt menu. For
example. The "Find" and "Go to xxx" menu items belong in the "View" or
a "Search" menu. I believe i should open a new enhancement issue for this.

To be frank, I have never warmed up to Netbeans until the 4.0 beta. I
have been a JBuilder/Eclipse user all along. The mount filesystem
paradigm turned me off. Besides project management wasn't great in 3.x
releases.

Comment 4 waynezhang 2005-08-16 05:40:51 UTC
TO:
<<QUOTE>>
Why cannot you use the editor for these purposes? IMO code completion
+ Tools/Override Methods or Tools/Synchronize is what you need to
achieve your usecase.

We want to keep the wizard simple as much as possible and do not
double the editor functionality. This was the main reason why we
simplefied it in NB 3.6.
<<END>>

This thought is stupied.
For wizard simple, why not you delete the "assign package name & project"
step? I think assign base class/interfaces is VERY important in a REAL 
project. Why not assign it at creating time instead of edit it after creation?
User can press "FINISH" at any step(before traverse all the steps of the
wizard), isn't simple enough?

Comment 5 waynezhang 2005-08-16 05:44:24 UTC
TO:
<<QUOTE>>
Why cannot you use the editor for these purposes? IMO code completion
+ Tools/Override Methods or Tools/Synchronize is what you need to
achieve your usecase.

We want to keep the wizard simple as much as possible and do not
double the editor functionality. This was the main reason why we
simplefied it in NB 3.6.
<<END>>

This thought is stupied.
For wizard simple, why not you delete the "assign package name & project"
step? I think assign base class/interfaces is VERY important in a REAL 
project. Why not assign it at creating time instead of edit it after creation?
User can press "FINISH" at any step(before traverse all the steps of the
wizard), isn't simple enough?

Comment 6 Tomas Zezula 2005-08-16 08:10:24 UTC
Honza is responsible for it.
Comment 7 Jan Pokorsky 2007-01-10 16:25:57 UTC
moizd:
Tools/XXX actions were replaced with editor hints. So hopefully it is enough
simple and intuitive nowadays. Closing this as WONTFIX.

waynezhang:
I am wondering how you would change the project inside the editor. In order to
change the package you would have to use the refactoring. Moreover these two
items can be determined from the node on which you invoke New File action.
Contrary to the possible base class you would have to write in all cases. So why
to maintain additional code for the wizard when users may do the same in the
editor. Other users could consider important adding fields, methods, ...