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 152938

Summary: Better support for multi-source, multi-phase tasks
Product: editor Reporter: Vitezslav Stejskal <vstejskal>
Component: Parsing & IndexingAssignee: Jan Jancura <jjancura>
Status: RESOLVED WONTFIX    
Severity: blocker Keywords: API
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152534, 152537    

Description Vitezslav Stejskal 2008-11-11 11:52:09 UTC
In some situations (eg. refactoring) modules need to perform tasks that in fact have multiple phases, which all can
(should) run on the same data (sources, AST, parser, etc). Each phase is a separate UserTask, which may produce some
results (eg. change diffs) that are then processed outside of The Loop and eventually passed to the next phase, which
finishes the whole operation. From performance reasons it is advisable to reuse parser and its data in the subsequent
phases (tasks), which is currently not possible.

Since this is likely to have impact on the core interfaces in the API we should address this problem prior merging the
API to trunk.
Comment 1 Jan Jancura 2008-12-03 16:18:23 UTC
> Feature
Comment 2 Jan Jancura 2009-03-27 10:46:51 UTC
We have decided to not add any special support for compiler phases to Parsing API. This feature can be managed
internally in each Parsing API client. Thats why I am closing this issue.