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

Summary: API review of IndexingAwareParserResultTask
Product: editor Reporter: Tomas Zezula <tzezula>
Component: Parsing & IndexingAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal CC: mfukala
Priority: P3 Keywords: API_REVIEW, API_REVIEW_FAST
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Attachments: Diff file

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