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 164011 - Add a "Extend class/Implement interface" feature
Summary: Add a "Extend class/Implement interface" feature
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 08:48 UTC by Vojtech Sigler
Modified: 2010-01-11 02:11 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 Vojtech Sigler 2009-04-29 08:48:03 UTC
It would be nice to have a tool or a wizard for extending/implementing. This feature would be called on a java class or
interface and would let the user select which methods he or she wants to implement/override. The user would also input
the name of the new class and target package. Apart from overriding methods it should be also possible to select
constructors to "recreate". The output would be a generated class, a skeleton where all the user needs to do is to put
code into the prepared methods. Regarding constructors, quite often all the constructor does is just call the
constructor of the superclass. By "recreating" I meant creating such constructors in the newly created class.
Comment 1 Max Sauer 2009-04-29 12:32:08 UTC
Thanks for your input. Are you aware of 'Source | Insert Code' functionality? It seems to me that feature required by this issue partially duplicates its 
functionality.
Comment 2 Vojtech Sigler 2009-04-29 12:51:20 UTC
Yes, I am aware of 'Source | Insert code'. I realize that some of the proposed functionality is already there, but the
proposed feature could wrap around these functionalities, so that the user does not need to generate the methods one by
one. Could it be done this way?
Comment 3 Max Sauer 2009-04-29 12:56:12 UTC
I just wanted to make sure. IMHO, this can be a useful feature, lets target next (6.8) release.