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

Summary: Allow external locking of the parsing infrastructure
Product: editor Reporter: Vitezslav Stejskal <vstejskal>
Component: Parsing & IndexingAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker Keywords: API
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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