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 119619

Summary: "Create class" hint should also offer to create a nested class
Product: java Reporter: Andrei Badea <abadea>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Andrei Badea 2007-10-22 10:23:14 UTC
In a class named example.Foo I had code like:

Bar result = new Bar(param);
result.start();
return result;

where Bar was not defined yet. I press Alt+Enter of the first line wanting to create Bar as a nested class, but the hint
only offers to create a top-level class.
Comment 1 Geertjan Wielenga 2008-02-19 22:54:31 UTC
I have a module that provides this, I will submit a patch for this issue. Here is the module, but not the sources yet:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=6152
Comment 2 Jan Lahoda 2010-04-27 13:52:57 UTC
This should work:
http://hg.netbeans.org/jet-main/rev/d4c8e9610c18
Comment 3 Quality Engineering 2010-04-28 05:11:26 UTC
Integrated into 'main-golden', will be available in build *201004280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: