Bug 207704 - ScanUtils background scan - aware support
ScanUtils background scan - aware support
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Source
7.2
PC Linux
: P3 (vote)
: 7.2
Assigned To: Svata Dedic
issues@java
background_scan
: API_REVIEW
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


Attachments

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: 
http://wiki.netbeans.org/BackgroundScan_HowTo#Support_Utilities
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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo