Class SimpleTask

  • All Implemented Interfaces:
    GTask

    public class SimpleTask
    extends java.lang.Object
    implements GTask
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleTask​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean didRun()  
      java.lang.String getName()
      Returns the name of this task.
      void run​(UndoableDomainObject obj, TaskMonitor monitor)
      the run method where work can be performed on the given domain object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleTask

        public SimpleTask​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: GTask
        Returns the name of this task.
        Specified by:
        getName in interface GTask
        Returns:
        the name of this task.
      • run

        public void run​(UndoableDomainObject obj,
                        TaskMonitor monitor)
                 throws CancelledException
        Description copied from interface: GTask
        the run method where work can be performed on the given domain object.
        Specified by:
        run in interface GTask
        Parameters:
        obj - the object to affect.
        monitor - the taskMonitor to be used to cancel and report progress.
        Throws:
        CancelledException - if the user cancelled the task.
      • didRun

        public boolean didRun()