Bug 5002 - API IncrementalProjectBuilder#build should mention how to handle cancel
Summary: API IncrementalProjectBuilder#build should mention how to handle cancel
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-15 17:34 EDT by John Arthorne CLA
Modified: 2001-11-01 10:17 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 John Arthorne CLA 2001-10-15 17:34:52 EDT
A builder should throw OperationCanceledException if the user canceled during 
the build.  This is not mentioned in the builder API.
Comment 1 John Arthorne CLA 2001-10-29 17:05:00 EST
Fixed.  Added a line in the javadoc recommending how cancelation should be 
handled:

 * Cancellation requests should be propagated to the caller by 
 * throwing <code>OperationCanceledException</code>.

Also added the following to IWorkspaceRunnable#run:

 * <p>
 * Implementors of this method should check the progress monitor
 * for cancellation when it is safe and appropriate to do so.  The cancellation
 * request should be propagated to the caller by throwing 
 * <code>OperationCanceledException</code>.
 * </p>
Comment 2 Rodrigo Peretti CLA 2001-11-01 10:17:18 EST
Fixed in v207