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 207704 - ScanUtils background scan - aware support
Summary: ScanUtils background scan - aware support
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
Keywords: API_REVIEW
Depends on:
Reported: 2012-01-25 08:12 UTC by Svata Dedic
Modified: 2012-02-14 20:07 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2012-01-25 08:12:11 UTC
ScanUtils represent utilities that help parser Task writers to avoid reporting false errors resulting from incomplete scan. They allow to combine JavaSource.runWhenScanFinished with runUserActionTask so that the action is typically not blocked by a background rescan, but can indicate that current data is incomplete and will be rescheduled after scanning finishes and then restarted.

Howto and explanation:
Comment 2 David Konecny 2012-01-25 22:22:21 UTC
Thanks Svata. I only looked at the helper methods provided and that looks good. I would suggest to rename "mayBecomeCompleted" into something like "isElementBeingScanned".
Comment 3 Svata Dedic 2012-01-26 10:04:07 UTC
Incorporated review items from Dusan & Lahvac.

* wrapper resolve/find methods should be removed
* isElementUsable should move as isErroneous() to ElementUtilities
* methods should work with CompilationInfo rather than with JavaSource
* variant methods added, which work with Source and Parsing API rather than JavaSource
* exception handling cleaned up and unified with Parsing API / Java parser
Comment 4 Tomas Zezula 2012-01-26 10:46:38 UTC
Seems good to me.
Comment 5 Svata Dedic 2012-02-14 20:07:25 UTC
Integrated in jet-main #94fc0582b286