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 198239

Summary: Anonymous inner classes in navigator panel
Product: java Reporter: mco <mco>
Component: NavigationAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Netbeans Navigator view
Eclipse Package Explorer view

Description mco 2011-05-02 11:58:17 UTC
Created attachment 108046 [details]
Netbeans Navigator view

Would it be possible for anonymous inner classes to be shown in Navigator tree?
Right now there is no information about them.
Eclipse has this feature. You can expand methods with inner classes there and see what methods are overridden there.

Example code (Screenshots of NetBeans navigator and Eclipse Package Explorer included):

public class AnonInnerClass {
    public static void main(String[] args) {
        MouseListener listener = new MouseListener() {

            @Override
            public void mouseClicked(MouseEvent e) {}

            @Override
            public void mousePressed(MouseEvent e) {}

            @Override
            public void mouseReleased(MouseEvent e) {}

            @Override
            public void mouseEntered(MouseEvent e) {}

            @Override
            public void mouseExited(MouseEvent e) {}
        };
    }
}

Thanks.
Comment 1 mco 2011-05-02 11:59:07 UTC
Created attachment 108047 [details]
Eclipse Package Explorer view