Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Implement Cancel Functionality
Implement Cancel Functionality [message #675167] Mon, 30 May 2011 09:33 Go to next message
Ankit SInghal is currently offline Ankit SInghal
Messages: 2
Registered: May 2011
Junior Member
Hi guys,

This is my problem:-

I am running a Job which i want to cancel. But i am not able to do it. I have tried adding the listener but that reports only after job has successfully completed.

Can u guys tell me how to cancel a job if a user presses the Cancel button in the progress monitor.

Thanks
Re: Implement Cancel Functionality [message #675182 is a reply to message #675167] Mon, 30 May 2011 10:12 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If your job is long-running, it must occasionally check org.eclipse.core.runtime.IProgressMonitor.isCanceled() to see if it should give up.

PW


Previous Topic:How to update plugin versions?
Next Topic:problem between rcp applications
Goto Forum:
  


Current Time: Fri Aug 22 14:00:16 EDT 2014

Powered by FUDForum. Page generated in 0.01556 seconds