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

Bug 59183

Summary: Cancelling foreground launch waits for build to complete
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2004-04-19 22:33:17 EDT
If I configure a config to launch in the foreground, and launch while a build 
is running, and choose to wait for the build, pressing the cancel buttons 
cancels the launch as expected, but the cancellation waits for the build to 
complete. While building the UI remains blocked with the progress dialog. I 
assume that is because we join on the build job, and thus do no periodically 
check for cancellation (or something like that).
Comment 1 Kevin Barnes CLA 2004-04-23 22:30:56 EDT
The dialog stays open until it's Runnable completes. There is no notification of cancellation. Cancel 
means cancelling the ProgressMonitor, not the process. Added code to poll the monitor to ensure that 
user hasn't cancelled the process.
Also changed code to iterate through build jobs and check their state to replace join(). Can't poll and 
join in the same Thread because join() is blocking.
Comment 2 Kevin Barnes CLA 2004-04-23 22:31:26 EDT
Darin, please verify
Comment 3 Darin Wright CLA 2004-05-03 17:25:12 EDT
Verified.