Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 13 00:12:42 EDT 2025

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

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

Back to the top