Bug 1826 - [Progress] Need a way to disable the cancel button in the middle of an operation (1GC2EWF)
Summary: [Progress] Need a way to disable the cancel button in the middle of an operat...
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate, needinfo
Depends on:
Blocks:
 
Reported: 2001-10-10 22:20 EDT by Dirk Baeumer CLA
Modified: 2009-08-30 02:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 22:20:03 EDT
We have a long running operation which is cancelable during the first 80% of the work. After that the operation isn't cancelable anymore.
	Is there a way to enable/disable the cancel button during a long running operation ?


NOTES:
	RG (5/8/01 2:27:41 PM)
	The only way I can see to do this is to add a setCancelable method to IProgressMonitor.
	This would be a breaking change for most implementors.
	The method is already implmented by ProgressMonitorDialog.

	Alternatively, since the cancel button is disabled as soon as it is pressed, once you
	get past 80% if the user presses cancel you could show a dialog saying that 
	the operation cannot be cancelled at this point.
Comment 1 DJ Houghton CLA 2001-10-24 06:47:16 EDT
PRODUCT VERSION:
	0.043

Comment 2 Kevin Haaland CLA 2002-05-02 10:55:33 EDT
Changing assignment. Dirk, do you still want a fix for this for 2.0?
Comment 3 Kevin Haaland CLA 2002-05-06 09:32:39 EDT
Consider additional changes as a post 2.0 enhancement.
Comment 4 Randy Giffen CLA 2002-08-01 11:54:05 EDT
Reopened for investigation
Comment 5 Susan McCourt CLA 2005-08-16 16:22:06 EDT
This is an old one!  
There's no way around the progress client itself being the one to know when 
something is no longer cancellable.  Perhaps IRunnableContext could be 
extended to include isCancelable protocol.  If IRunnableContext2 defined 
#isCancelable, then the progress dialog could wrap the client IProgressMonitor 
so that every time work is reported, it checks the cancelable state with the 
original IRunnableContext.

At any rate, this is a progress dialog issue, so moving to Tod.
Comment 6 Susan McCourt CLA 2005-08-16 16:25:59 EDT
I meant to say IRunnableWithProgress2, not IRunnableContext2.
The idea being...when you supply IRunnableWithProgress to the dialog, you can 
optionally supply isCancelable protocol.  
Comment 7 Tod Creasey CLA 2006-04-07 10:01:56 EDT
There are currently no plans to work on this feature
Comment 8 Denis Roy CLA 2009-08-30 02:11:25 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.