Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to invoke a handler with a progress monitor?
How to invoke a handler with a progress monitor? [message #494488] Fri, 30 October 2009 16:20 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: October 2009
Junior Member
I'm trying to seperate my commands into UI and non-UI. I register my non-UI handler to a menu action. That handler may take while to execute. Is there a way to run that handler with a IProgressMonitor? Note, I don't want to depend any UI code, or else I would have just run it like:

PlatformUI.getWorkbench().getProgressService().busyCursorWhi le(runnable);

Thanks.
Re: How to invoke a handler with a progress monitor? [message #494517 is a reply to message #494488] Fri, 30 October 2009 20:37 Go to previous message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
I am unsure about handlers, but if you are using the Job API, you can
certainly get progress bars for non-ui processes.

More information about the Job API:
http://www.eclipse.org/articles/Article-Concurrency/jobs-api .html

HTH

Michael
Previous Topic:RCP with JPA
Next Topic:Commands, Actions, Handlers, and buttons
Goto Forum:
  


Current Time: Wed Jul 30 05:24:42 EDT 2014

Powered by FUDForum. Page generated in 0.01771 seconds