Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » showing progress
showing progress [message #250533] Tue, 08 June 2004 14:58 Go to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

Where can I find some documentation on showing a progress monitor?
I found this:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-core-home/documents/plan_concurrency_modal_progress.htm l

But it doesn't help me very much I'm afraid.
Re: showing progress [message #250606 is a reply to message #250533] Tue, 08 June 2004 17:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Basically, do what it said. To bring up progress monitor use:

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

This call needs to be run from the UI thread. But your operation will be
executed in another thread. All of the shells will be disabled and a
busy cursor will be set. If it takes longer than a certain preset time
(it looks to be hard-coded to 800 ms), then and only then will the
progress monitor dialog come up. That way the user is not bothered with
a dialog for short operations, only for longer ones.


--
Thanks, Rich Kulp

Re: showing progress [message #250870 is a reply to message #250606] Wed, 09 June 2004 10:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

Rich Kulp wrote:

> Basically, do what it said. To bring up progress monitor use:

> PlatformUI.getWorkbench().getProgressService().busyCursorWhi le(operation);

> This call needs to be run from the UI thread. But your operation will be
> executed in another thread. All of the shells will be disabled and a
> busy cursor will be set. If it takes longer than a certain preset time
> (it looks to be hard-coded to 800 ms), then and only then will the
> progress monitor dialog come up. That way the user is not bothered with
> a dialog for short operations, only for longer ones.

Vut what exactly is "operation" ??
Re: showing progress [message #250894 is a reply to message #250870] Wed, 09 June 2004 11:53 Go to previous message
Eclipse UserFriend
Originally posted by: lorenz.m.gmx.at

Hi,
>> PlatformUI.getWorkbench().getProgressService().busyCursorWhi le(operation);
>
> Vut what exactly is "operation" ??

As the javadoc or the source easily tells you:
IRunnableWithProgress
Previous Topic:message to view
Next Topic:Eclipse Help Contents - Internal Server error
Goto Forum:
  


Current Time: Mon Dec 30 16:39:52 GMT 2024

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

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

Back to the top