Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 269817

Summary: Job#canceling() is never called
Product: [Eclipse Project] Platform Reporter: Pavel Sklenak <pavel.sklenak>
Component: RuntimeAssignee: John Arthorne <john.arthorne>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pavel Sklenak CLA 2009-03-24 08:31:03 EDT
Build ID: I20080617-2000

Steps To Reproduce:
I want support immediate cancellation but canceling() method is never called when stopping job via Progress View. According to javadoc it should be called - ( A hook method indicating that this job is running and {@link #cancel()}
	 * is being called for the first time.)

I investigated it and found following flow:
JobManager.cancel(InternalJob) line: 256	- test for first time canceling, it never happens
JobWorker$1(InternalJob).cancel() line: 144	
JobWorker$1(Job).cancel() line: 194	
JobInfo.cancel() line: 96	- cancel is set to true!
ProgressInfoItem.cancelOrRemove() line: 324	
ProgressInfoItem$1.widgetSelected(SelectionEvent) line: 229
Comment 1 John Arthorne CLA 2009-04-03 13:19:11 EDT

*** This bug has been marked as a duplicate of bug 200997 ***