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 77165

Summary: *Code Model* create common threading mechanizm
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: -- Other --Assignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 75930    

Description Vladimir Kvashin 2006-05-31 15:54:20 UTC
We know that calls to code model might be expensive; therefore clients (such as,
for example, Class View and Code Completion) call model in a sepatate thread.
For now they use RequestProcessor.getDefault() for this. 

Besides, model implementation uses its own threads (for example, for warmng up
model upon project opening).

It would be fine if model got full control over all these threads. This would
help to solve thread issues.
Comment 1 Vladimir Kvashin 2006-05-31 19:38:20 UTC
Fixed:

- modelapi: Added CsmModel.enqueue method

- modelimpl: added CodeModelRequestProcessor class that is responsible for
threading issues. It in turn uses RequestProcessor.

classview & completion: used  CsmModel.enqueue() instead of
RequestProcessor.getDefault().post()
Comment 2 Vladimir Kvashin 2006-06-15 04:52:12 UTC
*** Issue 75930 has been marked as a duplicate of this issue. ***