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 13:33 Go to next message
Ankit SInghal is currently offline Ankit SInghalFriend
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 14:12 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Tue Nov 25 21:14:31 GMT 2014

Powered by FUDForum. Page generated in 0.02755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software