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.
[200406230100], jdk1.4.2_04 -when 'Cut' on <default package> and 'Paste' somewhere exceptions shown maybe duplicate of issue 43578 or refactoring issue... feel free to reassign
Created attachment 15957 [details] at org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getName(PackageViewChildren.java:392)
it behaves really strange... the UI of the project is broken after this action. I did 'Cut' on <default package> in 'Test Packages' and 'Paste' into a package in 'Source Packages' and a new package named 'somepackage.test' appeared (user will ask - why test?)and <d p> stayed in 'Test Packages' (with wrong icon for non-empty package) When I looked at Files tab there isn't test folder anymore in this project even if the 'Test Packages' is shown in Project view... see first attachment... When I tryed the same for <default package> in 'Source Packages' it ended even worse... see second attachment -> notice the opened file location, I opened the file from project 'qbuild0623' but it shows that it's from the second project !!!!!! I'm adding UI and rising to P2
Created attachment 15967 [details] after cut on <defaul package> in Test Packages
Created attachment 15968 [details] after cut on <defaul package> in SourcePackages
Minor subissue (NPE) is duplicate of issue 43578. Well, back to strange behavior. The problem is, that Projects View is only thin UI Layer above DataObjects. This issue is only another symptom of still the same fact: If you select package org.netbeans, it means, that you selected DataFolder "netbeans". If you do copy/paste, rename or whatever, you do it on DataFolder "netbeans". Technically there is no physical representation of packages. What user see is only package nodes, which delegates averything to DataFolder. I assume, that if you selected <default package>, you selected root of the source path of the project. Lukasi klid, I don't say, that this is not a bug. I only summarize facts how it currently works.
jojo, I think that I understand why it happens but I'm really sure that this understanding won't help any user.. they need it'll be solved :) please, keep it in your radar/mind. I agree that the NPE is covered by the issue 43578, focus only on the 'Cut' of <default package>. thank Honza.
Rather disable. Default package is strange anyway.
Checking in project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java; /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v <-- PackageViewChildren.java new revision: 1.19; previous revision: 1.18 done
[200407271830] - verified the actions delete/cut are disabled on <default package>
Reorganization of java component