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 12421

Summary: FolderList.refresh time condition is bad
Product: platform Reporter: akemr <akemr>
Component: -- Other --Assignee: akemr <akemr>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description akemr 2001-05-25 14:02:47 UTC
Currently refresh is done only if time of event is > time of last refresh.

  if (now > time) {
    time = System.currentTimeMillis();
    createBoth(..

But there should be some delay.

Sometimes 
1. folder bb is created, event time is the same as previous refresh time
2. in previous refresh i use folder.getPrimaryFile ().getChildren which doesn't
return bb yet.
3. in next refresh (now > time) condition is false, so folder isn't recognized.

So better should be (now + 10 > time)
Comment 1 akemr 2001-05-29 08:05:45 UTC
Fixed in main trunk.
Comment 2 akemr 2001-05-29 08:43:18 UTC
Diff:

http://www.netbeans.org/unbranded-
source/browse/openide/src/org/openide/loaders/FolderList.java.diff?
r1=1.37&r2=1.38
Comment 3 Jan Zajicek 2001-05-29 15:01:57 UTC
Verified, the orig. 10ms was sugested by Yarda.
Comment 4 akemr 2001-06-12 08:13:42 UTC
Fixed in pilsen_fcs
Comment 5 Quality Engineering 2003-07-01 16:39:51 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.