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 - Better support for multi-source, multi-phase tasks
Summary: Better support for multi-source, multi-phase tasks
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords: API
Depends on:
Blocks: 152534 152537
  Show dependency tree
 
Reported: 2008-11-11 11:52 UTC by Vitezslav Stejskal
Modified: 2009-03-27 10:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.