|
Re: showing progress [message #250606 is a reply to message #250533] |
Tue, 08 June 2004 17:49 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03616 seconds