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 124059

Summary: Allow me to create a new Java Class as: com.example.Foo ...
Product: java Reporter: Kedar Mhaswade <kmhaswad>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jrojcek
Priority: P3    
Version: 5.x   
Hardware: Macintosh   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Kedar Mhaswade 2007-12-14 23:30:37 UTC
This RFE asks for short-circuiting two steps *when they can be combined*. The scenario is creating a new Class in a new
or existing package. When I have chosen "Source Packages" node in a Java Project and I want to create a class Foo in a
package com.example, I should be able to:
- Click on New Java Class (or Interface)
- Specify the name as: "com.example.Foo" ...

Currently, the IDE does not let me choose '.' in the class name field.
Comment 1 Tomas Zezula 2007-12-15 08:54:33 UTC
Adding Jano from UI team to cc list. We can split the Class Name when there is '.' to package name & simple name and
automatically fill the package text field.
Comment 2 jrojcek 2008-01-03 07:05:46 UTC
That sounds reasonable to me. Just note you need to check for cases like:

- If the user modifies the value in the package text field, so the class name field and package field would not match.
- If the user invokes the NFW on a package node (the package field is then filled in) and enters a different package into the class name field.

Maybe some other cases.

Comment 3 markiewb 2013-05-13 20:52:32 UTC

*** This bug has been marked as a duplicate of bug 227877 ***