Skip to main content


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 20:20 Go to next message
No real name is currently offline No real nameFriend
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] Sat, 31 October 2009 00:37 Go to previous message
Michael Pellaton is currently offline Michael PellatonFriend
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: Thu Mar 28 18:07:04 GMT 2024

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

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

Back to the top