Class WaitDialogMonitorThread

  • All Implemented Interfaces:
    Runnable

    public class WaitDialogMonitorThread
    extends Thread
    Class which will close the wait dialog once the worker thread has completed processing (or exited early due to a cancel being issued).
    • Constructor Detail

      • WaitDialogMonitorThread

        public WaitDialogMonitorThread​(Thread workerThread,
                                       WaitDialog waitDialog,
                                       ProgressFeed progressFeed)
        Initializes this monitor threead
        Parameters:
        workerThread - the worker thread being executed
        waitDialog - the dialog that should be closed when the thread exits
    • Method Detail

      • run

        public void run()
        Starts the worker thread and waits for it to complete. Then it closes the Wait dialog
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread