开发者

how IProgressMonitor pause?

开发者 https://www.devze.com 2022-12-25 02:48 出处:网络
How I can add an pause button to IProgressMonitor at an eclipse view. I have found only the chancel button. It wo开发者_Go百科rks correctly, but I have to do an pause operation.

How I can add an pause button to IProgressMonitor at an eclipse view. I have found only the chancel button. It wo开发者_Go百科rks correctly, but I have to do an pause operation.

Thanks!


It is not available via the interface. The only thing that can be done is to setCancel() and even that does not 100% guarantee that the task it is performing will be cancelled. The tasks can be cancelled only if the actual job supports/and can perform cancelling.

Also what exactly would a "pause" semantically mean? Do you want to lock resources and wait? For how long? Things like these would have been arguments against having the method, I think.

0

精彩评论

暂无评论...
验证码 换一张
取 消