Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Aug 31 05:19:32 EDT 2025

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

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

Back to the top