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 - "Create class" hint should also offer to create a nested class
Summary: "Create class" hint should also offer to create a nested class
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-22 10:23 UTC by Andrei Badea
Modified: 2010-04-28 05:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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: