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 - Allow me to create a new Java Class as: com.example.Foo ...
Summary: Allow me to create a new Java Class as: com.example.Foo ...
Status: RESOLVED DUPLICATE of bug 227877
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-14 23:30 UTC by Kedar Mhaswade
Modified: 2013-05-13 20:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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