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 43526 - New Java Class inconvenience
Summary: New Java Class inconvenience
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-19 10:29 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 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 Jan Lahoda 2004-05-19 10:29:14 UTC
NB trunk build 200405182245, JDK1.4.2.

1. Starting with a clean userdir.
2. Open a project with at least two distinct packages.
3. Select the second (in order) package.
4. Right-click, New/Java Class...
5. In the following dialog the "Package" field is
_always_ the first package. I would suppose that
after right-click on a package, these values are
pre-defined to the correct package/location.

This is very inconvenient, because it is always
necessary to check "Package" and "Location" values
and set the as required.

BTW: something similar holds for the "Location"
field, in this case it is "Source Packages" vs.
"Test Packages".
Comment 1 Jesse Glick 2004-05-19 18:27:45 UTC
I believe this is already fixed in the trunk.
Comment 2 Petr Hrebejk 2004-05-21 11:09:27 UTC
Yes this was fixed with the rewrite of the New Java File wizard. The
source root and package should be preselected correctly by the context.
Comment 3 Jan Lahoda 2004-05-25 14:58:16 UTC
Verified in 200405241800.