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 234183 - NbEditorUI refreshes file many times in the case of slow file system
Summary: NbEditorUI refreshes file many times in the case of slow file system
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks: 226361
  Show dependency tree
 
Reported: 2013-08-09 12:52 UTC by Vladimir Kvashin
Modified: 2013-08-14 14:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed fix (2.66 KB, patch)
2013-08-09 12:55 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2013-08-09 12:52:45 UTC
Each time editor component gains focus, NbEditorUI pushes a refresh task into request processor. So if this task takes long and user switches back and forth fast, then requests to refresh one and the same file stay in queue, so file is refreshed many times. Expected behaviour: don't enqueue refresh for the same file.

This does not allow me to fix P2 issue #226361.
Comment 1 Vladimir Kvashin 2013-08-09 12:55:43 UTC
Created attachment 138495 [details]
Proposed fix
Comment 2 Miloslav Metelka 2013-08-12 14:27:03 UTC
Integrated. Vladimir, thanks for the fix.

http://hg.netbeans.org/jet-main/rev/53daecfc9312
Comment 3 Quality Engineering 2013-08-14 14:40:04 UTC
Integrated into 'main-silver', will be available in build *201308141142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53daecfc9312
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #234183 - NbEditorUI refreshes file many times in the case of slow file system.