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 108049

Summary: Selecting the methods to override in the Generate Override Methods dialog impractical
Product: java Reporter: Andrei Badea <abadea>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: markiewb, phrebejk, saubrecht, sdedic
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Andrei Badea 2007-06-25 17:17:06 UTC
I wanted to override DefaultTableModel.getColumnClass(). The dialog opened up with DefaultTableModel expanded, but the
getColumnClass() method is in AbstractTableModel. I didn't realize that and just typed "getColumnClass" trying to quicky
select the method. Finally I realized I had to expand AbstractTableModel and select the method there.

The dialog should not force me to know where in the inheritance hierarchy is the method I want to override. I just want
a list of a methods logically defined in the current class. I guess the current approach probably has some advantages.
Then please introduce something like

[x] View Inheritance Tree


[o] Sort by Name    [o] Sort by Defining Class

at the top of the dialog.
Comment 1 Petr Hrebejk 2007-06-27 15:02:22 UTC
Just for record: Nice way how to avoid this is to invoke code completion between methods.
Comment 2 Petr Hrebejk 2007-06-28 12:23:30 UTC
I agree with the reporter. The override should rather be consistent with codecompletion way of doing it.
Comment 3 markiewb 2012-05-17 15:58:34 UTC
Using NetBeans 7.2, you can select the wished item via keyboard. BUT the selection/filter only applies to currently opened treenodes. 

PROPOSAL: When starting to filter the tree should fully expanded before. Then it should work.