zirande
zirande

Reputation: 31

how IProgressMonitor pause?

How I can add an pause button to IProgressMonitor at an eclipse view. I have found only the chancel button. It works correctly, but I have to do an pause operation.

Thanks!

Upvotes: 3

Views: 355

Answers (1)

Kannan Ekanath
Kannan Ekanath

Reputation: 17631

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.

Upvotes: 1

Related Questions