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 50221 - PackageViewChildren - bad icon on folder with invsible files only
Summary: PackageViewChildren - bad icon on folder with invsible files only
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: UI
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-10-11 13:39 UTC by Petr Hrebejk
Modified: 2006-03-24 09:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2004-10-11 13:39:34 UTC
One problem can easily be reproduced without any
reference to CVS, at
least in 040923 on Linux. Just create a
j2seproject with a main class
in package a. Close it. On disk, create another
package b with an
invisible file in it, e.g.

$ mkdir $proj/src/b
$ touch $proj/src/b/Hello.java~

Now reopen the project. The package 'b' is shown,
which is correct,
but it is shown with the full icon, not the empty
icon. However if you

$ mkdir $proj/src/b/c

then only a and b.c are shown, not b.

I don't know if this is the problem Gili was
referring to. If not,
Gili please provide exact steps to reproduce the
problem you do have.
Comment 1 Jesse Glick 2004-10-11 15:18:49 UTC
Don't you want to put Gili on CC?
Comment 2 Petr Hrebejk 2004-10-11 15:50:22 UTC
Not sure it is not the same bug Gili reported. However I mentioned
this bug in his original bugreport so he can add himself.
Comment 3 Petr Hrebejk 2004-10-11 15:52:53 UTC
Jesse, please review. I had to change some code you introduced when
implementing the tree form view of projects. Thanks.

Checking in
java/project/src/org/netbeans/modules/java/project/PackageDisplayUtils.java;
/cvs/java/project/src/org/netbeans/modules/java/project/PackageDisplayUtils.java,v
 <--  PackageDisplayUtils.java
new revision: 1.2; previous revision: 1.1
done
Processing log script arguments...
More commits to come...
Checking in
java/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.javanew revision: 1.44; previous revision: 1.43
done
Comment 4 Jesse Glick 2004-10-13 21:40:35 UTC
Yes, I believe that patch is correct.
Comment 5 Jaromir Uhrik 2006-01-18 10:47:29 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.