Community
Participate
Working Groups
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.
PRODUCT VERSION: 0.043
Changing assignment. Dirk, do you still want a fix for this for 2.0?
Consider additional changes as a post 2.0 enhancement.
Reopened for investigation
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.
I meant to say IRunnableWithProgress2, not IRunnableContext2. The idea being...when you supply IRunnableWithProgress to the dialog, you can optionally supply isCancelable protocol.
There are currently no plans to work on this feature
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.