Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 119619 - "Create class" hint should also offer to create a nested class
"Create class" hint should also offer to create a nested class
Product: java
Classification: Unclassified
Component: Hints
All All
: P3 (vote)
: 6.x
Assigned To: Jan Lahoda
Depends on:
  Show dependency treegraph
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


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);
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:
Comment 2 Jan Lahoda 2010-04-27 13:52:57 UTC
This should work:
Comment 3 Quality Engineering 2010-04-28 05:11:26 UTC
Integrated into 'main-golden', will be available in build *201004280200* on (upload may still be in progress)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo