Class MoveBlockTask

  • All Implemented Interfaces:

    public class MoveBlockTask
    extends ProgramTask
    Command that runs in the background to move a memory block, as the move may be a time consuming operation.
    • Constructor Detail

      • MoveBlockTask

        public MoveBlockTask​(Program program,
                             Address currentStart,
                             Address newStart,
                             MoveBlockListener listener)
        Creates a background command for moving memory blocks. The memory block is moved from its current start address to its new start address. After the command has completed, getStatus() can be called to check the success. If unsuccessful, getStatusMsg() can be called to get a message indicating why the command failed.
        program - the program whose memory map is being modified
        currentStart - the start address of the block before the move.
        newStart - the start address of the block after the move.
        listener - listener that will be notified when the move block has completed.
    • Method Detail

      • isCancelled

        public boolean isCancelled()
      • wasSuccessful

        public boolean wasSuccessful()
      • getStatusMessage

        public java.lang.String getStatusMessage()