Package editor.util

Class BackgroundOperation


  • public class BackgroundOperation
    extends Object
    • Method Detail

      • doBackgroundWaitOp

        public void doBackgroundWaitOp​(Runnable run)
        Sets the mouse cursor to the wait cursor, blocks input, and queues the runnable up in the ExecutorService.
      • doBackgroundOp

        public void doBackgroundOp​(Runnable run,
                                   boolean showWaitCursor)
        Runs a job in a background thread, using the ExecutorService, and optionally sets the cursor to the wait cursor and blocks input.
      • waitOnBackgroundOp

        public void waitOnBackgroundOp()
        Pumps through all current events in the background operation queue. Note that this is *NOT* a settle. Any operations added after this method is invoked will not be executed.
      • waitOnBackgroundOp

        public void waitOnBackgroundOp​(long timeout)