Class ProgramTask

  • All Implemented Interfaces:
    MonitoredRunnable
    Direct Known Subclasses:
    MoveBlockTask

    public abstract class ProgramTask
    extends Task
    Task for operating on programs. Will open and close a transaction around the work.
    • Field Detail

      • program NEW

        protected Program program

Constructor Detail

  • Method Detail

    • run

      public final void run​(TaskMonitor monitor)
      Description copied from class: Task
      This is the method that will be called to do the work

      Note: The run(TaskMonitor) method should not make any calls directly on Swing components, as these calls are not thread safe. Place Swing calls in a Runnable, then call SystemUtilities.runSwingLater(Runnable) or SystemUtilities.runSwingNow(Runnable)to schedule the Runnable inside of the AWT Event Thread.

      Specified by:
      run in class Task
      Parameters:
      monitor - The TaskMonitor that will monitor the executing Task
    • doRun NEW

      protected abstract void doRun​(TaskMonitor monitor)