Package org.eclipse.swt.custom
Class BusyIndicator
- java.lang.Object
-
- org.eclipse.swt.custom.BusyIndicator
-
public class BusyIndicator extends java.lang.Object
Support for showing a Busy Cursor during a long running process.
-
-
Constructor Summary
Constructors Constructor Description BusyIndicator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
showWhile(Display display, java.lang.Runnable runnable)
Runs the givenRunnable
while providing busy feedback using this busy indicator.
-
-
-
Method Detail
-
showWhile
public static void showWhile(Display display, java.lang.Runnable runnable)
Runs the givenRunnable
while providing busy feedback using this busy indicator.- Parameters:
display
- the display on which the busy feedback should be displayed. If the display is null, the Display for the current thread will be used. If there is no Display for the current thread, the runnable code will be executed and no busy feedback will be displayed.runnable
- the runnable for which busy feedback is to be shown. Must not be null.- Throws:
java.lang.IllegalArgumentException
-- ERROR_NULL_ARGUMENT - if the runnable is null
-
-