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 45479 - Disable or fix 'Cut' action on <default package>
Summary: Disable or fix 'Cut' action on <default package>
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
Keywords: UI
Depends on:
Blocks: 41535
  Show dependency tree
Reported: 2004-06-23 15:35 UTC by Lukas Hasik
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

at$PackageNode.getName( (20.25 KB, text/plain)
2004-06-23 15:37 UTC, Lukas Hasik
after cut on <defaul package> in Test Packages (9.42 KB, image/png)
2004-06-23 16:36 UTC, Lukas Hasik
after cut on <defaul package> in SourcePackages (59.33 KB, image/png)
2004-06-23 16:36 UTC, Lukas Hasik

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2004-06-23 15:35:40 UTC
[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
Comment 1 Lukas Hasik 2004-06-23 15:37:40 UTC
Created attachment 15957 [details]
Comment 2 Lukas Hasik 2004-06-23 16:35:12 UTC
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
Comment 3 Lukas Hasik 2004-06-23 16:36:25 UTC
Created attachment 15967 [details]
after cut on <defaul package> in Test Packages
Comment 4 Lukas Hasik 2004-06-23 16:36:53 UTC
Created attachment 15968 [details]
after cut on <defaul package> in SourcePackages
Comment 5 Jan Becicka 2004-06-23 17:27:53 UTC
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.
Comment 6 Lukas Hasik 2004-06-24 08:24:30 UTC
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.
Comment 7 Petr Hrebejk 2004-07-21 13:33:14 UTC
Rather disable. Default package is strange anyway.
Comment 8 Tomas Zezula 2004-07-21 14:34:08 UTC
Checking in
new revision: 1.19; previous revision: 1.18
Comment 9 Lukas Hasik 2004-07-28 11:30:12 UTC
[200407271830] - verified
the actions delete/cut are disabled on <default package>
Comment 10 Quality Engineering 2007-09-20 12:11:06 UTC
Reorganization of java component