Class PasteFileTask

  • All Implemented Interfaces:

    public class PasteFileTask
    extends Task
    Task to paste files at given destination folder.
    • Constructor Detail

      • PasteFileTask

        public PasteFileTask​(DomainFolderNode destNode,
                             java.util.List<GTreeNode> list,
                             boolean isCut)
        Constructor for PasteFileTask.
        destNode - destination folder
        list - list of GTreeNodes being pasted
        isCut - boolean flag, true means source nodes were cut instead of copied.
    • Method Detail

      • run

        public 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
        monitor - The TaskMonitor that will monitor the executing Task