Bug 49845 - DCR: Allow to cancel the AST creation
Summary: DCR: Allow to cancel the AST creation
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 08:47 EST by Martin Aeschlimann CLA
Modified: 2004-02-12 13:18 EST (History)
0 users

See Also:


Attachments

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