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 153140 - Allow external locking of the parsing infrastructure
Summary: Allow external locking of the parsing infrastructure
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2008-11-13 13:31 UTC by Vitezslav Stejskal
Modified: 2011-08-31 14:08 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-13 13:31:11 UTC
The general rule for acquiring locks on the prasing infrastructure and documents is to first lock the infrastructure and
then a document. This rule had to be reflected in several other API for example in Editor Indent API, which introduced a
concept of ExtraLock that API clients have to acquire prior using formatters/indenters and the SPI implementors are
obliged to bridge to the locking mechanism required by the backend infrastructure that they use for formatting/indenting
documents.

The infrastructure behind parsing is such a backend infrastructure, but its API does not allow to externally access its
lock. It's only possible to post task that run under the lock. We have to sort this our somehow otherwise it won't be
possible to use some of the editor API on top of the Parsing API.
Comment 1 Jan Jancura 2008-11-23 11:53:08 UTC
>p2
Comment 2 Jan Jancura 2008-12-03 16:18:36 UTC
> Feature
Comment 3 Jan Jancura 2008-12-03 16:20:26 UTC
> Feature