Class BusyIndicator

    • Constructor Detail

      • BusyIndicator

        public BusyIndicator()
    • Method Detail

      • showWhile

        public static void showWhile​(Display display,
                                     Runnable runnable)
        Runs the given Runnable 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:
        IllegalArgumentException -
        • ERROR_NULL_ARGUMENT - if the runnable is null