开发者

how IProgressMonitor pause?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜