Terminate a long runnning command in Equinox Console [message #1044830] |
Fri, 19 April 2013 11:41 |
|
The title says it all, I guess
We have operations that take up to several hours and output status information to the console. Did anyone implement a clever way how to check whether the user wants to terminate the long running command?
I'd be glad for any hints or ideas.
Thanks,
Marcel
|
|
|
Re: Terminate a long runnning command in Equinox Console [message #1045052 is a reply to message #1044830] |
Fri, 19 April 2013 17:48 |
|
Am 19.04.2013 13:41, schrieb Marcel Bruch:
> Did anyone implement a clever way how to check whether the user wants to terminate the long running command?
I usually implement those long running things in an Eclipse Job. The
commands schedule such a job and keep a reference somewhere (eg. in a
registry or singleton variable). Another commands then looks up the
reference and cancels the job.
Within the job, you need to check the progress monitor for cancellation.
-Gunnar
--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06074 seconds