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 204411 - "Creating Java class" from editor hint in test class to create class in Source packages
Summary: "Creating Java class" from editor hint in test class to create class in Sourc...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 14:12 UTC by dbell
Modified: 2015-10-06 09:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
"Create Class" hint shall also offer more options (292.60 KB, image/png)
2012-03-21 14:59 UTC, gilbertoca
Details
Works for me (6.46 KB, image/png)
2015-10-06 09:49 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dbell 2011-10-30 14:12:22 UTC
[ BUILD # : 201110290600 ]
[ JDK VERSION : 1.6.27 ]

Currently, if a nonexistent class is referenced from a class in a test package,
a hint is given in the editor to create a new class. 95% of the classes I
create in this situation actually belong in Source Packages, and I manually
move them after I create them. It would be great if either they were created in
Source Packages by default, or there was a choice at generation-time.
Comment 1 gilbertoca 2012-03-21 14:59:48 UTC
Created attachment 117015 [details]
"Create Class" hint shall also offer more options

Hi, 

"Create Class" hint shall also offer more options:

"Create Class" in [Source Packages]...package
"Create Class" in [Test Packages]...package
"Create Class" in [Nested Class]...current package

Regards,

Gilberto
Comment 2 markiewb 2015-10-06 09:49:23 UTC
Created attachment 156549 [details]
Works for me
Comment 3 markiewb 2015-10-06 09:50:23 UTC
Works for me.

See screenshot https://netbeans.org/bugzilla/attachment.cgi?id=156549

Product Version: NetBeans IDE 8.1 RC (Build 201510012201)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\8.1rc
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\8.1rc