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 - FolderList.refresh time condition is bad
Summary: FolderList.refresh time condition is bad
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-25 14:02 UTC by akemr
Modified: 2008-12-23 13:47 UTC (History)
0 users

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 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.