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 29512 - New packages should not be created under the <default package>
Summary: New packages should not be created under the <default package>
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-12 10:20 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (2.16 KB, image/png)
2002-12-12 10:24 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2002-12-12 10:20:58 UTC
[200212120736] [JDK1.4.1]
The only way how to create a new package is to 
select <default package> and invoke pop-up 
menu: New | Java Package. But the result is 
strange. See attached sreenhot.
Comment 1 Jan Becicka 2002-12-12 10:24:13 UTC
Created attachment 8286 [details]
screen shot
Comment 2 Pavel Buzek 2002-12-12 10:48:12 UTC
Chris, should I merge the <default package> with the Packages node? I 
am not sure about what behavior is expected for its children. My 
understanding is that starting from a node that contains some classes  
all packages should be displayed (should not be collapsed). But if the 
<default package>'s node contains some classes does this rule apply?
Comment 3 Chris Ledantec 2002-12-12 11:10:37 UTC
classes in the default package should turn up as direct children of
the packages node. 

if you had test.java in the default package and you had the rest of
your stuff in org.netbeans.module.foo then the packages node would
look like:

Packages
 |
 +- org.netbeans.modules.foo
 |
 -- test.java


Comment 4 Pavel Buzek 2002-12-13 22:09:50 UTC
fixed:

cvs commit -m "#29512 - removing <default package> node, it will be 
represented by 'Packages' n..." Bundle.properties PackagesLook.java 
JavaSourcesComponent.java (in directory 
C:\nb\new_projects\sources\java\src\org\netbeans\modules\java\project\
)
Checking in Bundle.properties;
/cvs/java/src/org/netbeans/modules/java/project/Attic/Bundle.propertie
s,v  <--  Bundle.properties
new revision: 1.1.2.14; previous revision: 1.1.2.13
done
Checking in PackagesLook.java;
/cvs/java/src/org/netbeans/modules/java/project/Attic/PackagesLook.jav
a,v  <--  PackagesLook.java
new revision: 1.1.2.11; previous revision: 1.1.2.10
done
Checking in JavaSourcesComponent.java;
/cvs/java/src/org/netbeans/modules/java/project/Attic/JavaSourcesCompo
nent.java,v  <--  JavaSourcesComponent.java
new revision: 1.1.2.40; previous revision: 1.1.2.39
done
Comment 5 Jan Becicka 2003-02-18 13:49:25 UTC
VERIFIED
Comment 6 Jan Becicka 2003-11-25 14:20:34 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.