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 207459 - API review of IndexingAwareParserResultTask
Summary: API review of IndexingAwareParserResultTask
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: apireviews
Depends on:
Reported: 2012-01-18 15:04 UTC by Tomas Zezula
Modified: 2012-01-26 15:22 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:

Diff file (52.61 KB, patch)
2012-01-18 15:08 UTC, Tomas Zezula
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2012-01-18 15:04:20 UTC
To keep the semantic compatibility in the background scan branch ParserResultTasks are not executed during the scan. But some of them, those running on local files, should be executed. To be able to mark those tasks to be executed a specialization of ParserResultTask allowing execution during scan was added - IndexingAwareParserResultTask. For JavaSourceTaskFactories constructors with TaskIndexingMode were added.
Comment 1 Tomas Zezula 2012-01-18 15:08:18 UTC
Created attachment 115024 [details]
Diff file
Comment 2 Jaroslav Tulach 2012-01-19 06:53:18 UTC
Y01 I was hoping the change will introduce @annotation to eliminate dealing with layers. The TaskIndexingMode parameter would then be specified in the @annotation rather then passed to super class.

Y02 TaskIndexingMode is missing any meaningful javadoc
Comment 3 Tomas Zezula 2012-01-19 08:52:07 UTC
Y01: There is an annotation @MimeRegistration.
The factories are registered in the MimeLookup as any other services.

Yo2: Fixed
Comment 4 Tomas Zezula 2012-01-26 15:22:15 UTC
Fixed jet-main 41985eb45913