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 105438 - "New Java Class" wizard should permit specification of a base class
Summary: "New Java Class" wizard should permit specification of a base class
Status: RESOLVED DUPLICATE of bug 113891
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 89194 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-01 21:52 UTC by tnelson
Modified: 2007-10-18 18:48 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 tnelson 2007-06-01 21:52:31 UTC
It would be nice if the "New Java Class" wizard allowed you to specify a base
class.  The generated class would extend the base class, would have constructors
matching the parent class' constructors (with appropriate calls to "super()"),
and would have stubs for all abstract methods the class should implement.  UI
would be a simple text box where the user would enter the base class name. 
Should be some form of resolution for imprecise name resolution, like is done
when a user enters "Date x = new Date();": a dialog listing possible candidates
is shown, and the user can pick one or cancel.
Comment 1 Karthikeyan Rajeswaran 2007-06-17 18:49:22 UTC
*** Issue 89194 has been marked as a duplicate of this issue. ***
Comment 2 Karthikeyan Rajeswaran 2007-06-17 18:53:30 UTC
From issue 89194

   Basically here i am trying to compare eclpise vs netbeans.
   When we try to create a new class, eclipse shows a lot(here read it as
   complete) options required to create a new class.

   In netbeans we can only select package. No super class, no interfaces, no access specifiers etc.

  Please check up eclipse for this. I think the point i am trying to make is
  that purpose of IDE is to make productivity very high.

  IDE is meant for that.Otherwise i can use textpad to create a new class.
  You must provide the user will all productivity steps for features u support.
   Otherwise there is no use at all.

  Eclipse is very friendly in this case.

  Let me also go one step ahead on this. If Netbeans has some way for users
  to create their own templates, then i suggest you make the default template
  just like eclipse.

  Thanks
  Swaroop belur

Until NetBeans 5.5, it was possible to change the superclass *after* new class creation by expanding the <newclass>.java
node, right-clicking on <newclass.class> node, selecting properties and changing values for the properties for
modifiers, extends etc. This feature is not present in NB6M9.
See also: http://www.netbeans.org/issues/show_bug.cgi?id=91403
Comment 3 Jan Pokorsky 2007-10-18 18:48:53 UTC
Basically duplicate of issue #113891. All these things you can simply do in the NetBeans editor.

*** This issue has been marked as a duplicate of 113891 ***