Bug 49845

Summary: DCR: Allow to cancel the AST creation
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2004-01-12 08:47:43 EST
20030112

We're building AST in the background for features like showing the quick assist
light bulb and for 'Mark occurences on selection'.

On larger files the AST creation can take some seconds so it can happen that a
new selection makes the AST obsolete before being created.
It would therefore be good if we can cancel an AST creation.

Suggestion is to pass a IProgressMonitor to AST.parseCompilationUnit.
Comment 1 Jerome Lanneluc CLA 2004-01-19 06:32:12 EST
Added APIs on AST to take an IProgressMonitor that is regulary checked for 
cancelation.
Comment 2 David Audel CLA 2004-02-12 13:18:22 EST
Verified for 3.0M7