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 113891

Summary: provide ways for implementing interfaces / selecting superclass while creating a new class
Product: java Reporter: kawazu428 <kawazu428>
Component: ProjectAssignee: Jan Pokorsky <jpokorsky>
Status: VERIFIED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description kawazu428 2007-08-27 19:35:25 UTC
By now the "New File" -> "Java Class" wizard just allows for specifying class and package name. Is there a possibility
of enhancing this by allowing users to specify

- which interface the class to be created should implement, and/or
- which superclass it should be derived from,

and make the class skeleton created subsequently automatically provide skeletons for implementing / overriding methods
required to override/implement?
Comment 1 Jan Pokorsky 2007-10-18 14:41:50 UTC
Java wizards were full of such UI fields and lists initially. It was possible to add also fields and methods. The reason
was that the editor lacked features like editor hints, automatic imports, ... Later we have decided to remove all that
stuff since it does not make sense to duplicate editor features in the wizard.

So, in order to add an interface you can use code completion and to implement method(s) use either code completion or
editor hints. There is also the Insert Code feature for constructors, equals() and hash(). It is really simple today.
Comment 2 kawazu428 2007-10-18 14:46:40 UTC
Guess it's a matter of what one is used to, but your explanation sounds logical, thanks for pointing this out. Verifying
this one for the sake of having it closed. :)
Comment 3 Jan Pokorsky 2007-10-18 18:48:49 UTC
*** Issue 105438 has been marked as a duplicate of this issue. ***